public void Commit() { if (_updateContext != null) { _updateContext.Commit(); _updateContext.Dispose(); _updateContext = null; } }