Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbModificationCommandTree.cs / 2 / DbModificationCommandTree.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees.Internal; using System.Data.Common.Utils; namespace System.Data.Common.CommandTrees { ////// Represents a DML operation expressed as a canonical command tree /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")] public abstract class DbModificationCommandTree : DbCommandTree { private DbExpressionBinding _target; internal DbModificationCommandTree(MetadataWorkspace metadata, DataSpace dataSpace) : base(metadata, dataSpace) { } ////// Gets the ///that specifies the target table for the DML operation. /// The expression binding is null ///The expression binding is associated with a different command tree public DbExpressionBinding Target { get { return _target; } internal set { using (new EntityBid.ScopeAuto("%d#", this.ObjectId)) { DbExpressionBinding.Check("Target", value, this); EntityBid.Trace(" %d#, value.VariableName='%ls'\n", this.ObjectId, value.VariableName); EntityBid.Trace(" %d#, value.DbExpression=%d#, %d{cqt.DbExpressionKind}\n", this.ObjectId, DbExpression.GetObjectId(value.Expression), DbExpression.GetExpressionKind(value.Expression)); _target = value; this.SetModified(); } } } /// /// Returns true if this modification command returns a reader (for instance, to return server generated values) /// internal abstract bool HasReader { get; } internal override void DumpStructure(ExpressionDumper dumper) { if (this.Target != null) { dumper.Dump(this.Target, "Target"); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees.Internal; using System.Data.Common.Utils; namespace System.Data.Common.CommandTrees { ////// Represents a DML operation expressed as a canonical command tree /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")] public abstract class DbModificationCommandTree : DbCommandTree { private DbExpressionBinding _target; internal DbModificationCommandTree(MetadataWorkspace metadata, DataSpace dataSpace) : base(metadata, dataSpace) { } ////// Gets the ///that specifies the target table for the DML operation. /// The expression binding is null ///The expression binding is associated with a different command tree public DbExpressionBinding Target { get { return _target; } internal set { using (new EntityBid.ScopeAuto("%d#", this.ObjectId)) { DbExpressionBinding.Check("Target", value, this); EntityBid.Trace(" %d#, value.VariableName='%ls'\n", this.ObjectId, value.VariableName); EntityBid.Trace(" %d#, value.DbExpression=%d#, %d{cqt.DbExpressionKind}\n", this.ObjectId, DbExpression.GetObjectId(value.Expression), DbExpression.GetExpressionKind(value.Expression)); _target = value; this.SetModified(); } } } /// /// Returns true if this modification command returns a reader (for instance, to return server generated values) /// internal abstract bool HasReader { get; } internal override void DumpStructure(ExpressionDumper dumper) { if (this.Target != null) { dumper.Dump(this.Target, "Target"); } } } } // 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
- HtmlInputControl.cs
- IBuiltInEvidence.cs
- EntityType.cs
- TimeEnumHelper.cs
- DashStyles.cs
- ServiceModelEnumValidatorAttribute.cs
- UserPreferenceChangedEventArgs.cs
- TextParentUndoUnit.cs
- WorkflowService.cs
- BitmapEffectDrawingContent.cs
- EntityContainerEmitter.cs
- TargetFrameworkUtil.cs
- TimeoutException.cs
- ArglessEventHandlerProxy.cs
- srgsitem.cs
- DetailsViewPagerRow.cs
- CreatingCookieEventArgs.cs
- BitmapMetadataBlob.cs
- DropAnimation.xaml.cs
- Identity.cs
- BuildManager.cs
- ChameleonKey.cs
- CryptoKeySecurity.cs
- HtmlEmptyTagControlBuilder.cs
- StateRuntime.cs
- LineSegment.cs
- ConstraintConverter.cs
- SchemaName.cs
- IsolationInterop.cs
- UnsafeNativeMethodsTablet.cs
- NativeObjectSecurity.cs
- OutputCacheProfileCollection.cs
- AuthenticationService.cs
- EnumUnknown.cs
- RequestUriProcessor.cs
- IArgumentProvider.cs
- Tokenizer.cs
- ProfileParameter.cs
- RegexCompilationInfo.cs
- Classification.cs
- AlternateView.cs
- EnvelopedSignatureTransform.cs
- ValueUtilsSmi.cs
- XhtmlBasicValidatorAdapter.cs
- OletxVolatileEnlistment.cs
- __TransparentProxy.cs
- ToolTipAutomationPeer.cs
- TimelineGroup.cs
- TextServicesDisplayAttribute.cs
- TextBoxBase.cs
- EventDriven.cs
- DynamicResourceExtensionConverter.cs
- StringDictionaryEditor.cs
- GridViewRowPresenter.cs
- QuinticEase.cs
- ConfigXmlAttribute.cs
- TextEffectResolver.cs
- TdsValueSetter.cs
- SchemaNotation.cs
- SessionStateItemCollection.cs
- TextWriterEngine.cs
- FactoryMaker.cs
- DynamicResourceExtensionConverter.cs
- XmlDocumentFragment.cs
- DataSourceXmlSerializer.cs
- BaseCodeDomTreeGenerator.cs
- IDispatchConstantAttribute.cs
- EntityStoreSchemaFilterEntry.cs
- ReferenceEqualityComparer.cs
- JournalEntryListConverter.cs
- OdbcEnvironment.cs
- PropertyEmitter.cs
- WindowsNonControl.cs
- ISCIIEncoding.cs
- BaseCodeDomTreeGenerator.cs
- Nullable.cs
- DashStyle.cs
- ObjectViewEntityCollectionData.cs
- StateItem.cs
- SpeechRecognitionEngine.cs
- Model3D.cs
- ProjectionCamera.cs
- Binding.cs
- ReceiveContext.cs
- ScrollViewerAutomationPeer.cs
- FusionWrap.cs
- StylusPointPropertyUnit.cs
- LayoutUtils.cs
- EnumDataContract.cs
- WorkflowHostingResponseContext.cs
- ChangesetResponse.cs
- WebPartMovingEventArgs.cs
- ProxyHelper.cs
- validationstate.cs
- SqlStream.cs
- StringConverter.cs
- ServiceNameElementCollection.cs
- ConfigurationCollectionAttribute.cs
- coordinatorfactory.cs
- ReferencedCollectionType.cs