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); }
public SessionRepository(ArrayStartAtOneCtxContainer ctx) : base(ctx) { }
public CategoryRepository(ArrayStartAtOneCtxContainer ctx) : base(ctx) { }
public ItemRepository(ArrayStartAtOneCtxContainer ctx) : base(ctx) { }
public DALBase(ArrayStartAtOneCtxContainer ctx) { _ctx = ctx; _dbSet = _ctx.Set <T>(); }
public DALBase() { _ctx = new ArrayStartAtOneCtxContainer(); _dbSet = _ctx.Set <T>(); }