Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbModificationCommandTree.cs / 1305376 / DbModificationCommandTree.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees.Internal; using System.Data.Common.Utils; using System.Linq; 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 readonly DbExpressionBinding _target; private System.Collections.ObjectModel.ReadOnlyCollection_parameters; internal DbModificationCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target) : base(metadata, dataSpace) { EntityUtil.CheckArgumentNull(target, "target"); this._target = target; } /// /// Gets the public DbExpressionBinding Target { get { return _target; } } ///that specifies the target table for the DML operation. /// /// Returns true if this modification command returns a reader (for instance, to return server generated values) /// internal abstract bool HasReader { get; } internal override IEnumerable> GetParameters() { if (this._parameters == null) { this._parameters = ParameterRetriever.GetParameters(this); } return this._parameters.Select(p => new KeyValuePair (p.ParameterName, p.ResultType)); } 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 [....], [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees.Internal; using System.Data.Common.Utils; using System.Linq; 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 readonly DbExpressionBinding _target; private System.Collections.ObjectModel.ReadOnlyCollection_parameters; internal DbModificationCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target) : base(metadata, dataSpace) { EntityUtil.CheckArgumentNull(target, "target"); this._target = target; } /// /// Gets the public DbExpressionBinding Target { get { return _target; } } ///that specifies the target table for the DML operation. /// /// Returns true if this modification command returns a reader (for instance, to return server generated values) /// internal abstract bool HasReader { get; } internal override IEnumerable> GetParameters() { if (this._parameters == null) { this._parameters = ParameterRetriever.GetParameters(this); } return this._parameters.Select(p => new KeyValuePair (p.ParameterName, p.ResultType)); } 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
- WebContext.cs
- ImageListStreamer.cs
- IPPacketInformation.cs
- DataTemplate.cs
- UnicodeEncoding.cs
- UnsafeNativeMethods.cs
- ContentElement.cs
- ClipboardProcessor.cs
- PeerCollaboration.cs
- LoginView.cs
- OnOperation.cs
- Version.cs
- DocumentXmlWriter.cs
- HashHelper.cs
- DateTimeOffsetConverter.cs
- WinFormsComponentEditor.cs
- ListBoxItemAutomationPeer.cs
- StrokeCollection2.cs
- XmlUrlResolver.cs
- Label.cs
- XmlSerializer.cs
- XamlReader.cs
- GridView.cs
- PagedDataSource.cs
- TCEAdapterGenerator.cs
- ImageUrlEditor.cs
- EntryWrittenEventArgs.cs
- SHA512Managed.cs
- NonVisualControlAttribute.cs
- StrokeFIndices.cs
- DispatchWrapper.cs
- VoiceSynthesis.cs
- EditingCommands.cs
- BindingListCollectionView.cs
- SQLBinaryStorage.cs
- DocumentGrid.cs
- HtmlObjectListAdapter.cs
- ConfigurationStrings.cs
- RequestQueue.cs
- FileLogRecord.cs
- RawStylusInput.cs
- XmlReaderSettings.cs
- SchemaDeclBase.cs
- BoundField.cs
- Set.cs
- TextBoxAutomationPeer.cs
- BitmapEffectOutputConnector.cs
- WindowsPen.cs
- HyperLinkStyle.cs
- XmlValueConverter.cs
- clipboard.cs
- ResXResourceReader.cs
- AlignmentYValidation.cs
- MemberJoinTreeNode.cs
- UIAgentMonitorHandle.cs
- PersianCalendar.cs
- TraceInternal.cs
- RegisteredArrayDeclaration.cs
- NumericUpDown.cs
- TimelineGroup.cs
- AnimationClockResource.cs
- XmlIlTypeHelper.cs
- SHA1Managed.cs
- Journaling.cs
- CharStorage.cs
- SamlAssertion.cs
- BitmapFrameEncode.cs
- LogSwitch.cs
- ResourcePermissionBaseEntry.cs
- PersonalizationProvider.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ByteRangeDownloader.cs
- XsdDuration.cs
- NotifyIcon.cs
- AnnotationResource.cs
- GridSplitterAutomationPeer.cs
- ReadOnlyNameValueCollection.cs
- State.cs
- PersianCalendar.cs
- BitArray.cs
- CodeVariableDeclarationStatement.cs
- OdbcUtils.cs
- WindowsSidIdentity.cs
- Internal.cs
- WebPartConnectionsCancelVerb.cs
- ClientTargetSection.cs
- BindToObject.cs
- infer.cs
- NavigationHelper.cs
- TypeListConverter.cs
- DoubleCollectionValueSerializer.cs
- CustomError.cs
- AssociationTypeEmitter.cs
- GreaterThanOrEqual.cs
- MinMaxParagraphWidth.cs
- SkinBuilder.cs
- SafeRightsManagementEnvironmentHandle.cs
- COAUTHIDENTITY.cs
- DescriptionAttribute.cs
- ConfigurationFileMap.cs