Beispiel #1
0
 public virtual void Dispose(bool disposing)
 {
     if (!_disposed && disposing)
     {
         _context.Dispose();
     }
     _disposed = true;
 }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         fNavman.Dispose();
         fContext.Dispose();
     }
     base.Dispose(disposing);
 }
 private void Clear(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
     }
     _disposed = true;
 }
Beispiel #4
0
 protected virtual void Dispose(bool pBolDisposing)
 {
     if (pBolDisposing)
     {
         if (mObjContext != null)
         {
             mObjContext.Dispose();
             mObjContext = null;
         }
     }
 }
Beispiel #5
0
 public virtual void Dispose(bool disposing)
 {
     if (!_disposed && disposing)
     {
         _baseContext.Dispose();
         foreach (IDisposable repository in _repositories.Values)
         {
             repository.Dispose();// dispose all repositries
         }
     }
     _disposed = true;
 }
Beispiel #6
0
 public void Dispose()
 {
     DbSet = null;
     Context.Dispose();
     GC.SuppressFinalize(this);
 }
Beispiel #7
0
 public void Dispose()
 {
     _context?.Dispose();
 }