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