public void Dispose() { if (_db != null) { _db.Dispose(); } }
public virtual void Dispose(bool disposing) { if (disposing) { context.Dispose(); context = null; } }