private Session() { StoreManager.Start(); //RegisterWaitEventAsync(); }
//public int Count<T>(Expression<Func<T, bool>> filter) where T : class, new() //{ // Generic2BsonLambdaConverter visitor = new Generic2BsonLambdaConverter(); // var expr = visitor.Visit(filter) as Expression<Func<JObject, bool>>; // return Count(typeof(T).Name, expr); //} #endregion public static void ShutDown() { StoreManager.ShutDown(); }
public static void Start() { StoreManager.Start(); }
public IObjectStore GetCollection(string collection) { return(StoreManager.GetObjectStore(_databasename, collection)); }