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
- IisTraceListener.cs
- safelink.cs
- Codec.cs
- RootCodeDomSerializer.cs
- DocumentViewerAutomationPeer.cs
- DebugHandleTracker.cs
- WebConfigurationHost.cs
- CookieHandler.cs
- MergeFilterQuery.cs
- XamlGridLengthSerializer.cs
- Unit.cs
- InstanceData.cs
- StandardBindingOptionalReliableSessionElement.cs
- ModelTypeConverter.cs
- HuffCodec.cs
- XmlIlGenerator.cs
- ButtonChrome.cs
- MobileControl.cs
- HandlerWithFactory.cs
- FtpCachePolicyElement.cs
- ReadContentAsBinaryHelper.cs
- Freezable.cs
- Queue.cs
- RegisteredHiddenField.cs
- XmlQueryStaticData.cs
- SharedPersonalizationStateInfo.cs
- AttributeSetAction.cs
- SystemUnicastIPAddressInformation.cs
- OutArgument.cs
- DesignerActionHeaderItem.cs
- InstanceDataCollection.cs
- ParallelRangeManager.cs
- ObjectFullSpanRewriter.cs
- BoolLiteral.cs
- DataKey.cs
- PropertyDescriptorCollection.cs
- ImageClickEventArgs.cs
- InputBinding.cs
- Automation.cs
- CodeArrayIndexerExpression.cs
- KeyConverter.cs
- PassportIdentity.cs
- SeekableReadStream.cs
- TransactedBatchingBehavior.cs
- ExtensionSimplifierMarkupObject.cs
- FacetValueContainer.cs
- InputProcessorProfilesLoader.cs
- TableParaClient.cs
- ScalarConstant.cs
- HybridCollection.cs
- SymbolMethod.cs
- ServiceObjectContainer.cs
- TextAutomationPeer.cs
- Utilities.cs
- SqlNamer.cs
- DynamicValueConverter.cs
- PersonalizablePropertyEntry.cs
- WebScriptServiceHostFactory.cs
- ProjectedSlot.cs
- DataGridHyperlinkColumn.cs
- HwndMouseInputProvider.cs
- SrgsRuleRef.cs
- OleDbError.cs
- DecoderExceptionFallback.cs
- HtmlMeta.cs
- mda.cs
- Models.cs
- DataMisalignedException.cs
- SwitchAttribute.cs
- BindingMAnagerBase.cs
- CacheSection.cs
- AnimationClock.cs
- XsltSettings.cs
- CompositeCollectionView.cs
- SvcMapFile.cs
- SqlServices.cs
- ConstructorArgumentAttribute.cs
- QilCloneVisitor.cs
- StdValidatorsAndConverters.cs
- WindowsListViewGroupHelper.cs
- Cursor.cs
- XmlAttributes.cs
- Point3D.cs
- JsonReaderWriterFactory.cs
- OuterGlowBitmapEffect.cs
- WebServiceParameterData.cs
- CallbackValidator.cs
- ModifyActivitiesPropertyDescriptor.cs
- TaskFileService.cs
- DataStorage.cs
- ISO2022Encoding.cs
- UpDownBaseDesigner.cs
- XmlSchemaCompilationSettings.cs
- MessageBox.cs
- ImageMetadata.cs
- RootProfilePropertySettingsCollection.cs
- TextEffect.cs
- TextBoxView.cs
- Math.cs
- DataBindingList.cs