public void Dispose() { if (_databaseContext != null) { _databaseContext.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { context.Dispose(); if (transaction != null) { transaction.Dispose(); } } } disposed = true; }