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