Exemple #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Exemple #2
0
 public static void Destroy(ProductsDbContext context)
 {
     context.Database.EnsureDeleted();
     context.Dispose();
 }
Exemple #3
0
 public void Dispose()
 {
     _dataContext.Dispose();
 }
 public void Dispose()
 {
     DBContext.Dispose();
     GC.SuppressFinalize(this);
 }
 public void Dispose()
 {
     _context?.Dispose();
     GC.SuppressFinalize(this);
 }
Exemple #6
0
 public void Dispose()
 {
     _context.Dispose();
 }