Esempio n. 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
Esempio n. 2
0
 public UnitOfWork()
 {
     _context = new RentTrackerContext();
 }
Esempio n. 3
0
 public Repository()
 {
     unitOfWork = new UnitOfWork();
     context    = new RentTrackerContext();
     _entity    = context.Set <T>();
 }