private void Dispose(bool disposing) { if (!disposed) { if (disposing) { dbContext.Dispose(); } } disposed = true; }
public void Dispose() { dbContext?.Dispose(); _treeNodeRepository?.Dispose(); }