Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbModificationCommandTree.cs / 1 / 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
- DataGridViewRowHeaderCell.cs
- LocalizationParserHooks.cs
- DataServiceHost.cs
- ProfileManager.cs
- SqlBulkCopyColumnMapping.cs
- SoapHeaderAttribute.cs
- RecordConverter.cs
- DotExpr.cs
- HitTestParameters3D.cs
- DbFunctionCommandTree.cs
- FormatterConverter.cs
- TextContainerChangeEventArgs.cs
- HotCommands.cs
- MatrixTransform3D.cs
- PopupControlService.cs
- DbConnectionPoolCounters.cs
- RepeaterItemCollection.cs
- Operators.cs
- Floater.cs
- _BaseOverlappedAsyncResult.cs
- DataKeyArray.cs
- DescendantBaseQuery.cs
- GraphicsContext.cs
- SizeFConverter.cs
- Vector3DCollectionConverter.cs
- SymmetricAlgorithm.cs
- SqlServer2KCompatibilityAnnotation.cs
- MetafileHeader.cs
- ThreadLocal.cs
- StorageBasedPackageProperties.cs
- RectangleConverter.cs
- CompModSwitches.cs
- HierarchicalDataSourceDesigner.cs
- ExpressionBuilderContext.cs
- ListView.cs
- TextProviderWrapper.cs
- Brush.cs
- safemediahandle.cs
- SmtpReplyReader.cs
- EnumMember.cs
- MulticastNotSupportedException.cs
- SqlDataSourceSelectingEventArgs.cs
- DragDropManager.cs
- WebPartTransformerCollection.cs
- EventSourceCreationData.cs
- NativeMethodsOther.cs
- xml.cs
- TreeViewDesigner.cs
- WebPartsSection.cs
- TextBox.cs
- Converter.cs
- VisualBasicSettingsHandler.cs
- MemoryMappedView.cs
- XmlWhitespace.cs
- DetailsViewRowCollection.cs
- PropertyItemInternal.cs
- Tuple.cs
- SqlRewriteScalarSubqueries.cs
- DataGridViewCellStateChangedEventArgs.cs
- PnrpPeerResolver.cs
- peernodestatemanager.cs
- ValidateNames.cs
- XmlSerializerOperationFormatter.cs
- CounterCreationData.cs
- WindowsListViewSubItem.cs
- ManipulationDevice.cs
- TimeSpanSecondsConverter.cs
- ParallelLoopState.cs
- ClientTargetSection.cs
- ArrangedElement.cs
- ComUdtElementCollection.cs
- TemplateBamlTreeBuilder.cs
- CopyNodeSetAction.cs
- RoutingUtilities.cs
- InvokePattern.cs
- _NtlmClient.cs
- SafeNativeMethodsOther.cs
- UserPreferenceChangedEventArgs.cs
- InputLangChangeEvent.cs
- TagPrefixCollection.cs
- MsmqInputSessionChannel.cs
- DataControlFieldHeaderCell.cs
- ProfilePropertyNameValidator.cs
- BinaryReader.cs
- AnnotationService.cs
- ServiceInstallComponent.cs
- SessionPageStatePersister.cs
- MetadataCacheItem.cs
- InputLanguageProfileNotifySink.cs
- DataKeyArray.cs
- NonSerializedAttribute.cs
- StaticExtensionConverter.cs
- HMACRIPEMD160.cs
- SqlBulkCopyColumnMapping.cs
- SynchronousChannelMergeEnumerator.cs
- SmiRecordBuffer.cs
- XmlSchemaCollection.cs
- AuthStoreRoleProvider.cs
- XmlArrayAttribute.cs
- DefaultParameterValueAttribute.cs