Example #1
0
 public virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _dbMain?.Dispose();
         }
         _disposed = true;
     }
 }
Example #2
0
 public void Dispose()
 {
     _contextMain.Dispose();
 }