public static UpdateEntityPool <T> AcquireContent(MongoDBService db, T entity) { var ret = s_pool.AcquireContent(); ret.DB = db; ret.Entity = entity; return(ret); }
public void Release() { Entity = null; DB = null; s_pool.ReleaseContent(this); }
public static UpdateEntityPool <T> AcquireContent(MongoDBService db, T entity) { var ret = s_pool.AcquireContent(); ret.DB = db; ret.Entity = entity; return(ret); }
public void Release() { Entity = null; DB = null; s_pool.ReleaseContent(this); }