Beispiel #1
0
 private void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             if (_db != null)
             {
                 _db.Dispose();
                 _db = null;
             }
         }
         _disposed = true;
     }
 }
Beispiel #2
0
 public UnitOfWork(MeritPayContext db, IServiceProvider serviceProvider)
 {
     _db = db;
     _serviceProvider = serviceProvider;
 }