protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { ctx.Dispose(); base.Dispose(disposing); }
public void Dispose() { customerDataContext.Database.EnsureDeleted(); customerDataContext.Dispose(); }