//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)
 {
 }