C# Class Cedar.AppContext

This class provides session object to deal with your sharded databases
Afficher le fichier Open project: Vadi/Cedar Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public AppContext ( string appName ) : System
appName string
Résultat System

GetSession() public méthode

Create new session for database operation
public GetSession ( long uuid ) : ICedarSession
uuid long
Résultat ICedarSession

SetupSchema() public méthode

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

UpdateShard() public méthode

Update the total count for a shard
public UpdateShard ( long uuid ) : void
uuid long
Résultat void