public void Dispose()
 {
     if (_myDbContext != null)
     {
         _myDbContext.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
 public void Dispose()
 {
     _context.Dispose();
 }
Example #4
0
 public void dispose()
 {
     db.Dispose();
 }