protected virtual void Dispose(bool disposing) { if (disposing) { _context.Dispose(); } }
void IDisposable.Dispose() { if (dbContext != null) { dbContext.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { _db.Dispose(); } base.Dispose(disposing); }
public void Dispose() { if (!Disposed) { DbContext?.Dispose(); Disposed = true; } }
protected virtual void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { dbContext.Dispose(); } this.disposed = true; } }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { ctx.Dispose(); } } this.disposed = true; }
public virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { _context.Dispose(); } disposed = true; } }
public void Dispose() { if (!Disposed) { if (DbContext != null) { DbContext.Dispose(); Disposed = true; } } }
private void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { dbContext.Dispose(); } disposed = true; }
public virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { if (_dbContext != null) { _dbContext.Dispose(); _dbContext = null; } } // release any unmanaged objects // set the object references to null _disposed = true; }
public void Dispose() { _db?.Dispose(); _connection?.Dispose(); }
/// <summary> /// This releases database resource /// </summary> public void Dispose() { dbContext.Dispose(); }
protected override void DisposeCore() { _dbContext?.Dispose(); }
public void Dispose() { _context?.Dispose(); }
public void Dispose() { Db?.Dispose(); }
public static void Destroy(StoreDbContext context) { context.Database.EnsureDeleted(); context.Dispose(); }
public void Dispose() { _storeDb?.Dispose(); _userDb?.Dispose(); _connection?.Close(); }