protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { db.Dispose(); } } this.disposed = true; }
public void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _dbContext.Dispose(); } } _disposed = true; }
public void TearDown() { _inMemoryContext.Dispose(); }
public void Dispose() { context.Dispose(); }