示例#1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
示例#2
0
 public OrderRepository(StoreDataContext context)
 {
     this._context = context;
 }
 public CategoryRepository(StoreDataContext context)
 {
     this._context = context;
 }
示例#4
0
 public UnitOfWork(StoreDataContext context)
 {
     _context = context;
 }
 public ProductRepository(StoreDataContext context)
 {
     this._context = context;
 }