C# Class Cedar.AppContext

This class provides session object to deal with your sharded databases
ファイルを表示 Open project: Vadi/Cedar Class Usage Examples

Public Methods

Method Description
AppContext ( string appName ) : System

GetSession ( long uuid ) : ICedarSession

Create new session for database operation

SetupSchema ( ShardStartegyData dto ) : long

this method will set up schema for new user, will return unique id to application

UpdateShard ( long uuid ) : void

Update the total count for a shard

Method Details

AppContext() public method

public AppContext ( string appName ) : System
appName string
return System

GetSession() public method

Create new session for database operation
public GetSession ( long uuid ) : ICedarSession
uuid long
return ICedarSession

SetupSchema() public method

this method will set up schema for new user, will return unique id to application
public SetupSchema ( ShardStartegyData dto ) : long
dto ShardStartegyData
return long

UpdateShard() public method

Update the total count for a shard
public UpdateShard ( long uuid ) : void
uuid long
return void