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