public UnitOfWork(string connectionString) { _context = new ApContext(connectionString); Itemss = new ItemRepository(_context); Orders = new OrderRepository(_context); ClientManager = new ClientManager(_context); RoleManager = new AppRoleManager(new RoleStore <AppRole>(_context)); UserManager = new AppUserManager(new UserStore <User>(_context)); ShoppingCart = new CartRepository(_context); }
public CartRepository(ApContext context) : base(context) { }
public ItemRepository(ApContext context) : base(context) { }
public OrderRepository(ApContext context) : base(context) { }
public Repository(ApContext app) { context = app; }
public ClientManager(ApContext db) { DB = db; }