C# 클래스 Cedar.AppContext

This class provides session object to deal with your sharded databases
파일 보기 프로젝트 열기: Vadi/Cedar 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AppContext() 공개 메소드

public AppContext ( string appName ) : System
appName string
리턴 System

GetSession() 공개 메소드

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

SetupSchema() 공개 메소드

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

UpdateShard() 공개 메소드

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