Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         restaurantDb.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #3
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             Db.Dispose();
         }
         this.disposed = true;
     }
 }
Пример #4
0
 public void Dispose()
 {
     pcontext.Dispose();
 }
 public void Dispose()
 {
     ctx.Dispose();
 }
Пример #6
0
 protected override void Dispose(bool disposing)
 {
     _context.Dispose();
 }
Пример #7
0
 public void Dispose()
 {
     _dbContext?.Dispose();
 }