protected virtual void Dispose(Boolean disposing) { if (!Disposed) { if (disposing) { DbContext.Dispose(); } } Disposed = true; }
public void Dispose() { if (Disposed) { return; } DbContext.Dispose(); GC.SuppressFinalize(this); Disposed = true; }