public void Dispose() { if (_Dbcontext != null) { _Dbcontext.Dispose(); } }
public void Dispose() { if (context != null) { context.Dispose(); } }
/// <summary> /// Implementation of IDisposable. IBBLContext inherits from IDisposable. /// </summary> protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _context.Dispose(); } } this.disposed = true; }
public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { db.Dispose(); } this.disposed = true; } }
protected virtual void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { db.Dispose(); } disposed = true; }
protected virtual void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { if (_accountManager != null) { _accountManager.Dispose(); } db.Dispose(); } disposed = true; }