Example #1
0
        public SessionService()
        {
            var ctx = new ArrayStartAtOneCtxContainer();

            _sessionRep = new SessionRepository(ctx);
            _userRep    = new UserRepository(ctx);
            _logger     = new FileLogger();
        }
        public DbService()
        {
            var ctx = new ArrayStartAtOneCtxContainer();

            _userRepository     = new UserRepository(ctx);
            _itemRepository     = new ItemRepository(ctx);
            _categoryRepository = new CategoryRepository(ctx);
            _orderRepository    = new OrderRepository(ctx);
        }
Example #3
0
 public SessionRepository(ArrayStartAtOneCtxContainer ctx) : base(ctx)
 {
 }
 public CategoryRepository(ArrayStartAtOneCtxContainer ctx) : base(ctx)
 {
 }
 public ItemRepository(ArrayStartAtOneCtxContainer ctx) : base(ctx)
 {
 }
Example #6
0
 public DALBase(ArrayStartAtOneCtxContainer ctx)
 {
     _ctx   = ctx;
     _dbSet = _ctx.Set <T>();
 }
Example #7
0
 public DALBase()
 {
     _ctx   = new ArrayStartAtOneCtxContainer();
     _dbSet = _ctx.Set <T>();
 }