public void Commit() { if (_disposed) { throw new ObjectDisposedException(this.GetType().FullName); } _dataContext.SaveChanges(); }