Beispiel #1
0
        public static List <DA02A> GetDA02A()
        {
            var list = new List <DA02A>();

            var cacheData = CacheHelper.Get("DA02A");

            if (cacheData == null)
            {
                var entity = new ALMSEntities();
                var DA02A  = entity.DA02A.ToList();
                CacheHelper.Set("DA02A", DA02A);
            }

            list = CacheHelper.Get("DA02A") as List <DA02A>;

            return(list);
        }
Beispiel #2
0
        public static List <BA01A> GetBA01A()
        {
            var list = new List <BA01A>();

            var cacheData = CacheHelper.Get("BA01A");

            if (cacheData == null)
            {
                var entity = new ALMSEntities();
                var BA01A  = entity.BA01A.ToList();
                CacheHelper.Set("BA01A", BA01A);
            }

            list = CacheHelper.Get("BA01A") as List <BA01A>;

            return(list);
        }
Beispiel #3
0
        public static List <BA02B> GetBA02B()
        {
            var list = new List <BA02B>();

            var cacheData = CacheHelper.Get("BA02B");

            if (cacheData == null)
            {
                var entity = new ALMSEntities();
                var BA02B  = entity.BA02B.ToList();
                CacheHelper.Set("BA02B", BA02B);
            }

            list = CacheHelper.Get("BA02B") as List <BA02B>;

            return(list);
        }
Beispiel #4
0
 protected RepositoryBase(ALMSEntities entity)
 {
     _Entity = entity;
     dbSet   = _Entity.Set <TEntity>();
 }
Beispiel #5
0
 public BA03Service()
 {
     _entity     = new ALMSEntities();
     _Repository = new BA03ARepository(_entity);
 }
Beispiel #6
0
 public TR01Service()
 {
     _entity     = new ALMSEntities();
     _Repository = new TR01ARepository(_entity);
 }
Beispiel #7
0
 public BA01ARepository(ALMSEntities entity) : base(entity)
 {
 }
Beispiel #8
0
 public RP04Service()
 {
     _entity = new ALMSEntities();
 }
Beispiel #9
0
 public BA02Service()
 {
     _entity          = new ALMSEntities();
     _BA02ARepository = new BA02ARepository(_entity);
     _BA02BRepository = new BA02BRepository(_entity);
 }
Beispiel #10
0
 public SQLHelper(ALMSEntities entity)
 {
     _entity = entity;
 }