public void Dispose() { if (dbContext != null) { dbContext.Dispose(); } }
protected override void Dispose(bool disposing) { db.Dispose(); base.Dispose(disposing); }