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
- ManifestResourceInfo.cs
- EntityDesignerUtils.cs
- HttpPostClientProtocol.cs
- AnnotationComponentChooser.cs
- NamedPipeConnectionPoolSettingsElement.cs
- SmtpLoginAuthenticationModule.cs
- Util.cs
- LockRecursionException.cs
- MailAddress.cs
- Msmq4PoisonHandler.cs
- XPathException.cs
- TransactionChannelListener.cs
- Int64Animation.cs
- translator.cs
- GridViewCellAutomationPeer.cs
- DataBoundControl.cs
- EmptyEnumerable.cs
- connectionpool.cs
- LogRestartAreaEnumerator.cs
- DataTableTypeConverter.cs
- StringWriter.cs
- StylusCollection.cs
- DetailsViewUpdatedEventArgs.cs
- DataRowView.cs
- ProcessThreadDesigner.cs
- CookieHandler.cs
- CollectionConverter.cs
- XappLauncher.cs
- AsyncOperation.cs
- OleDbPermission.cs
- DynamicResourceExtension.cs
- SQLByte.cs
- VolatileEnlistmentMultiplexing.cs
- SkipStoryboardToFill.cs
- TextEmbeddedObject.cs
- OnOperation.cs
- XmlQueryTypeFactory.cs
- CompiledRegexRunner.cs
- PeoplePickerWrapper.cs
- StateElementCollection.cs
- SamlSecurityTokenAuthenticator.cs
- AsymmetricCryptoHandle.cs
- XmlToDatasetMap.cs
- TextEditorTables.cs
- NativeMethods.cs
- WebRequestModuleElement.cs
- LinkDesigner.cs
- CancellationTokenRegistration.cs
- PagedDataSource.cs
- DbExpressionBuilder.cs
- DataColumnChangeEvent.cs
- TrackBar.cs
- RedirectionProxy.cs
- MemoryMappedFileSecurity.cs
- DbProviderFactory.cs
- SqlNotificationEventArgs.cs
- Inflater.cs
- DecoderReplacementFallback.cs
- ConfigurationLockCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- OleDbConnectionInternal.cs
- TreeViewDataItemAutomationPeer.cs
- TraceContext.cs
- ServiceChannelProxy.cs
- ProgressiveCrcCalculatingStream.cs
- ContentElementAutomationPeer.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XmlDocumentType.cs
- QilTargetType.cs
- ExtendedProperty.cs
- VirtualPathExtension.cs
- SvcMapFileLoader.cs
- DecimalFormatter.cs
- BindingElementCollection.cs
- ResourceReferenceExpressionConverter.cs
- TemplateColumn.cs
- ElementAtQueryOperator.cs
- FtpRequestCacheValidator.cs
- SqlRecordBuffer.cs
- BmpBitmapEncoder.cs
- Char.cs
- ObjectDataSourceMethodEventArgs.cs
- Property.cs
- MonthCalendar.cs
- DefinitionBase.cs
- IsolatedStorageFile.cs
- TriggerAction.cs
- BrowserCapabilitiesFactoryBase.cs
- SubqueryTrackingVisitor.cs
- SafeCryptContextHandle.cs
- WorkflowInstanceContextProvider.cs
- ChineseLunisolarCalendar.cs
- ChangeConflicts.cs
- VerifyHashRequest.cs
- FileDocument.cs
- ExecutionContext.cs
- StateMachineWorkflowInstance.cs
- ExpandableObjectConverter.cs
- XmlChildNodes.cs
- Geometry.cs