public virtual void Dispose(bool isManuallyDisposing) { if (!isDisposed) { if (isManuallyDisposing) { invoiceTipDbContext.Dispose(); } } isDisposed = true; }
private void Dispose(bool disposing) { if (!disposing) { return; } if (invoiceTipDbContext == null) { return; } invoiceTipDbContext.Dispose(); invoiceTipDbContext = null; }