//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;
        }
Пример #2
0
        //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;
        }
Пример #3
0
        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;
 }
Пример #5
0
 public FullAccountCache(INcfDbData db)
     : base(CACHE_KEY, db, timeout)
 {
 }
Пример #6
0
 /// <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;
 }
Пример #7
0
 public SysButtonRespository(INcfDbData db) : base(db)
 {
     _senparcEntities = db.BaseDataContext as SenparcEntitiesBase;
 }
Пример #8
0
 public DataBase(INcfDbData baseDB)
 {
     BaseDB = baseDB;
 }
Пример #9
0
 public FullSystemConfigCache(INcfDbData db)
     : base(CACHE_KEY, db)
 {
     base.TimeOut = 1440;
 }
Пример #10
0
 public FullXncfModuleCache(string CACHE_KEY, INcfDbData db, int timeOut) : base(CACHE_KEY, db, timeOut)
 {
 }
Пример #11
0
 public FullXncfModuleCache(INcfDbData db)
     : this(CACHE_KEY, db, 1440)
 {
 }
 public XncfModuleRepository(INcfDbData db) : base(db)
 {
 }