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
- WinEventHandler.cs
- RegexCompilationInfo.cs
- ClientRolePrincipal.cs
- ComponentRenameEvent.cs
- FontNamesConverter.cs
- SiteMapNodeItem.cs
- Application.cs
- BamlLocalizableResource.cs
- DoubleCollection.cs
- basevalidator.cs
- ListControlBuilder.cs
- CodeCommentStatementCollection.cs
- AppSettingsExpressionEditor.cs
- odbcmetadatacollectionnames.cs
- SerializationException.cs
- StrokeCollection.cs
- ToggleProviderWrapper.cs
- XmlImplementation.cs
- SvcMapFileLoader.cs
- BitmapEffectDrawingContent.cs
- ObjectTypeMapping.cs
- XmlBaseWriter.cs
- Pens.cs
- XhtmlBasicLabelAdapter.cs
- SqlDataSourceConfigureSortForm.cs
- DBDataPermission.cs
- SerializationException.cs
- InitializationEventAttribute.cs
- ExitEventArgs.cs
- HostSecurityManager.cs
- datacache.cs
- PermissionAttributes.cs
- DataKeyArray.cs
- XmlWriter.cs
- FilteredSchemaElementLookUpTable.cs
- ComboBoxRenderer.cs
- HashAlgorithm.cs
- DatePickerAutomationPeer.cs
- TextEditor.cs
- XpsColorContext.cs
- UrlPath.cs
- RuleSetBrowserDialog.cs
- TypeInitializationException.cs
- ScanQueryOperator.cs
- Double.cs
- FtpWebRequest.cs
- CommandValueSerializer.cs
- WinInetCache.cs
- SpecialTypeDataContract.cs
- XmlArrayItemAttribute.cs
- DecimalAnimationBase.cs
- DBConcurrencyException.cs
- FixedElement.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NaturalLanguageHyphenator.cs
- StructuralType.cs
- cookiecollection.cs
- TimeManager.cs
- EntitySetDataBindingList.cs
- TreeNode.cs
- ModelItemKeyValuePair.cs
- Tokenizer.cs
- WebFaultClientMessageInspector.cs
- CounterSample.cs
- Evaluator.cs
- SizeConverter.cs
- Line.cs
- XPathNodeInfoAtom.cs
- PageTheme.cs
- WinEventQueueItem.cs
- Constants.cs
- TableRow.cs
- MachineKeyConverter.cs
- MULTI_QI.cs
- KnownColorTable.cs
- FormsIdentity.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WebPartsPersonalization.cs
- SplineKeyFrames.cs
- FormsAuthenticationUser.cs
- X509ServiceCertificateAuthentication.cs
- AppDomainResourcePerfCounters.cs
- RijndaelManaged.cs
- SemanticValue.cs
- OrthographicCamera.cs
- WebBrowsableAttribute.cs
- FieldToken.cs
- PointConverter.cs
- StrongNameMembershipCondition.cs
- CorrelationExtension.cs
- filewebresponse.cs
- ByteStorage.cs
- InputEventArgs.cs
- HandlerWithFactory.cs
- CommandPlan.cs
- ConstraintStruct.cs
- ParallelDesigner.cs
- DrawTreeNodeEventArgs.cs
- AttachedPropertyBrowsableAttribute.cs
- CanonicalizationDriver.cs