コード例 #1
0
 public UnitOfWork(ESDatabaseContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("Context was not supplied");
     }
     _context = context;
 }
コード例 #2
0
 public OrderRepository(ESDatabaseContext context)
     : base(context)
 {
 }
コード例 #3
0
 public ItemRepository(ESDatabaseContext context)
     : base(context)
 {
 }
コード例 #4
0
 public CartRepository(ESDatabaseContext context)
     : base(context)
 {
 }
コード例 #5
0
 public Repository(ESDatabaseContext context)
 {
     //_objectSet = context.CreateObjectSet<T>();
     _dbSet = context.Set <T>();
 }