protected override void Dispose(bool disposing) { if (disposing) { db?.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public void Dispose() { _context?.Dispose(); GC.SuppressFinalize(this); }
public void Dispose() { dbContext.Database.EnsureDeleted(); dbContext.Dispose(); }