Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbSetClause.cs / 1305376 / DbSetClause.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees.Internal; using System.Data.Common.Utils; using System.Diagnostics; namespace System.Data.Common.CommandTrees { ////// Specifies a clause in a modification operation setting the value of a property. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")] public sealed class DbSetClause : DbModificationClause { private DbExpression _prop; private DbExpression _val; internal DbSetClause(DbExpression targetProperty, DbExpression sourceValue) : base() { EntityUtil.CheckArgumentNull(targetProperty, "targetProperty"); EntityUtil.CheckArgumentNull(sourceValue, "sourceValue"); _prop = targetProperty; _val = sourceValue; } ////// Gets an ///that specifies the property that should be updated. /// /// Constrained to be a public DbExpression Property { get { return _prop; } } ///. /// /// Gets an ///that specifies the new value with which to update the property. /// /// Constrained to be a public DbExpression Value { get { return _val; } } internal override void DumpStructure(ExpressionDumper dumper) { dumper.Begin("DbSetClause"); if (null != this.Property) { dumper.Dump(this.Property, "Property"); } if (null != this.Value) { dumper.Dump(this.Value, "Value"); } dumper.End("DbSetClause"); } internal override TreeNode Print(DbExpressionVisitoror /// visitor) { TreeNode node = new TreeNode("DbSetClause"); if (null != this.Property) { node.Children.Add(new TreeNode("Property", this.Property.Accept(visitor))); } if (null != this.Value) { node.Children.Add(new TreeNode("Value", this.Value.Accept(visitor))); } return node; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NegationPusher.cs
- TextViewSelectionProcessor.cs
- CodeSubDirectoriesCollection.cs
- WebAdminConfigurationHelper.cs
- Stylesheet.cs
- InputLangChangeRequestEvent.cs
- SingleAnimationBase.cs
- MemberPath.cs
- SHA256.cs
- AddressingProperty.cs
- XPathChildIterator.cs
- SafeEventLogWriteHandle.cs
- XmlSchemaElement.cs
- CheckBox.cs
- TimeSpanOrInfiniteConverter.cs
- XmlCharacterData.cs
- EndOfStreamException.cs
- TextTreeInsertElementUndoUnit.cs
- FillBehavior.cs
- DataGridViewRow.cs
- Margins.cs
- ColorTransformHelper.cs
- SizeFConverter.cs
- LoginCancelEventArgs.cs
- FreezableDefaultValueFactory.cs
- RouteParametersHelper.cs
- StackSpiller.cs
- SimpleMailWebEventProvider.cs
- XmlNamedNodeMap.cs
- EntityViewGenerator.cs
- WindowsListViewGroupSubsetLink.cs
- ThrowOnMultipleAssignment.cs
- FlowDocumentPageViewerAutomationPeer.cs
- CodeSnippetExpression.cs
- DbDeleteCommandTree.cs
- CreateParams.cs
- WindowsTokenRoleProvider.cs
- ConditionCollection.cs
- BitmapEffectInput.cs
- ReadOnlyDictionary.cs
- LessThanOrEqual.cs
- CompositeControl.cs
- JulianCalendar.cs
- WindowsFormsSynchronizationContext.cs
- UnsupportedPolicyOptionsException.cs
- SqlXmlStorage.cs
- DocumentScope.cs
- XmlCharType.cs
- MutexSecurity.cs
- ProtocolsConfigurationEntry.cs
- BlockCollection.cs
- ServiceParser.cs
- ByeMessageApril2005.cs
- ToolBarButton.cs
- Transform3DGroup.cs
- TypeConverterValueSerializer.cs
- SqlRecordBuffer.cs
- BaseTemplateParser.cs
- FixedHighlight.cs
- StylusCollection.cs
- TypeConverterHelper.cs
- DataGridViewMethods.cs
- MobileFormsAuthentication.cs
- TextEditorContextMenu.cs
- DataServiceException.cs
- StorageComplexPropertyMapping.cs
- BindingWorker.cs
- QueryContinueDragEvent.cs
- TranslateTransform.cs
- SamlSubject.cs
- QuotedPrintableStream.cs
- DataPager.cs
- MetaType.cs
- CookieHandler.cs
- FileIOPermission.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- InstanceData.cs
- RelationshipDetailsRow.cs
- PropertyItem.cs
- RuntimeCompatibilityAttribute.cs
- AnimationClock.cs
- CommonProperties.cs
- XmlEnumAttribute.cs
- SerializerDescriptor.cs
- TemplateAction.cs
- RoleGroup.cs
- ConfigurationStrings.cs
- ContentIterators.cs
- ComponentConverter.cs
- TableSectionStyle.cs
- FaultContractAttribute.cs
- SingleObjectCollection.cs
- PersonalizationStateInfoCollection.cs
- ToolStripDropDown.cs
- DynamicILGenerator.cs
- OdbcEnvironment.cs
- CollectionViewGroup.cs
- RepeaterCommandEventArgs.cs
- FlowPosition.cs
- ToolStripProgressBar.cs