Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SafeLibraryHandle.cs
- MobilePage.cs
- MessageContractAttribute.cs
- WebAdminConfigurationHelper.cs
- ProcessProtocolHandler.cs
- ConfigUtil.cs
- HuffmanTree.cs
- ListDictionaryInternal.cs
- Context.cs
- CursorConverter.cs
- IpcChannel.cs
- COM2Enum.cs
- DataAdapter.cs
- MemberInitExpression.cs
- Ray3DHitTestResult.cs
- CounterSetInstanceCounterDataSet.cs
- LiteralDesigner.cs
- PassportAuthentication.cs
- Binding.cs
- ResolveNameEventArgs.cs
- ToolboxItemFilterAttribute.cs
- Queue.cs
- SafeHandle.cs
- InputProviderSite.cs
- grammarelement.cs
- IERequestCache.cs
- DiscoveryClientReferences.cs
- Int32EqualityComparer.cs
- AssemblyAssociatedContentFileAttribute.cs
- TextContainer.cs
- HttpCookieCollection.cs
- filewebresponse.cs
- SettingsAttributes.cs
- _LocalDataStore.cs
- TextControl.cs
- GridViewUpdateEventArgs.cs
- ExpressionConverter.cs
- SizeFConverter.cs
- SqlDataSource.cs
- BeginCreateSecurityTokenRequest.cs
- ManipulationStartingEventArgs.cs
- ConditionChanges.cs
- Debug.cs
- Propagator.JoinPropagator.cs
- SparseMemoryStream.cs
- CreateUserErrorEventArgs.cs
- EnterpriseServicesHelper.cs
- XmlDataSourceNodeDescriptor.cs
- ExpressionParser.cs
- RefType.cs
- arc.cs
- XPathSelfQuery.cs
- GridViewRowCollection.cs
- MasterPage.cs
- NavigateEvent.cs
- ShaderEffect.cs
- UIElementParagraph.cs
- EdgeProfileValidation.cs
- ManagedWndProcTracker.cs
- ClusterSafeNativeMethods.cs
- WebReferencesBuildProvider.cs
- DelegateBodyWriter.cs
- ReliabilityContractAttribute.cs
- DataRowCollection.cs
- WrapPanel.cs
- WebPartDescriptionCollection.cs
- ApplicationSecurityInfo.cs
- TransformFinalBlockRequest.cs
- UrlAuthFailureHandler.cs
- BitmapEffectDrawing.cs
- ProcessHostServerConfig.cs
- AnimationClockResource.cs
- ExtentKey.cs
- TimersDescriptionAttribute.cs
- ToolboxService.cs
- PathFigure.cs
- ConnectionPoint.cs
- ProxyElement.cs
- ProgressBarRenderer.cs
- AssemblyBuilderData.cs
- DWriteFactory.cs
- InlineUIContainer.cs
- AutomationEventArgs.cs
- MULTI_QI.cs
- HtmlInputFile.cs
- XpsSerializationManagerAsync.cs
- FixedSOMTextRun.cs
- ValueQuery.cs
- SemanticResolver.cs
- StateBag.cs
- TypeSemantics.cs
- RoleBoolean.cs
- CalendarDay.cs
- DelegatedStream.cs
- AssemblyCollection.cs
- OrderByBuilder.cs
- UnsafeNativeMethodsCLR.cs
- Rect.cs
- FormatPage.cs
- HyperLink.cs