//public ClientRepositoryBase() : this(null) { } public ClientRepositoryBase(INcfDbData db) : base(db) { //System.Web.HttpContext.Current.Response.Write("-"+this.GetType().Name + "<br />"); var keys = EntitySetKeys.GetAllEntitySetInfo(); _entitySetName = keys[typeof(T)].SetName; }
//public RepositoryBase() : // this(null) //{ //} public RepositoryBase(INcfDbData db) : base(db) { //System.Web.HttpContext.Current.Response.Write("-"+this.GetType().Name + "<br />"); //DB = db ?? ObjectFactory.GetInstance<INcfDbData>();//如果没有定义,取默认数据库 base.BaseDB = db; // ObjectFactory.GetInstance<INcfDbData>(); EntitySetKeysDictionary keys = EntitySetKeys.GetAllEntitySetInfo(); _entitySetName = keys[typeof(T)].SetName; }
public BaseCache(string cacheKey, INcfDbData db) { CacheKey = cacheKey; _db = db; if (TimeOut == 0) { TimeOut = 1440; } Cache = CacheStrategyFactory.GetObjectCacheStrategyInstance(); this.CacheSetKey = cacheKey;//设置缓存集合键,必须提供 }
public FullTenantInfoCache(string CACHE_KEY, INcfDbData db, int timeOut) : base(CACHE_KEY, db) { base.TimeOut = timeOut; }
public FullAccountCache(INcfDbData db) : base(CACHE_KEY, db, timeout) { }
/// <summary> /// /// </summary> /// <param name="CACHE_KEY"></param> /// <param name="db"></param> /// <param name="timeOut">单位:分钟。1440为一天。</param> public BaseDictionaryCache(string CACHE_KEY, INcfDbData db, int timeOut) : base(CACHE_KEY, db, timeOut) { base.TimeOut = timeOut; }
public SysButtonRespository(INcfDbData db) : base(db) { _senparcEntities = db.BaseDataContext as SenparcEntitiesBase; }
public DataBase(INcfDbData baseDB) { BaseDB = baseDB; }
public FullSystemConfigCache(INcfDbData db) : base(CACHE_KEY, db) { base.TimeOut = 1440; }
public FullXncfModuleCache(string CACHE_KEY, INcfDbData db, int timeOut) : base(CACHE_KEY, db, timeOut) { }
public FullXncfModuleCache(INcfDbData db) : this(CACHE_KEY, db, 1440) { }
public XncfModuleRepository(INcfDbData db) : base(db) { }