Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _Context.Dispose();
     }
 }
Пример #2
0
 protected override void DisposeCore()
 {
     if (demoContext != null)
     {
         demoContext.Dispose();
     }
 }
Пример #3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #4
0
 public void Dispose()
 {
     if (_demoCtx != null)
     {
         _demoCtx.Dispose();
     }
     GC.SuppressFinalize(this);
 }
Пример #5
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
Пример #6
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
     }
     this.disposed = true;
 }
 public void Dispose()
 {
     _context.Dispose();
 }
Пример #8
0
 public void Dispose()
 {
     Db.Dispose();
     GC.SuppressFinalize(this);
 }
 public void Dispose()
 {
     _dbContext.Dispose();
     GC.SuppressFinalize(this);
 }