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
- TTSVoice.cs
- LinkArea.cs
- CallbackValidatorAttribute.cs
- HMACRIPEMD160.cs
- BitStream.cs
- InstanceView.cs
- StatusBarPanelClickEvent.cs
- XPathNodeHelper.cs
- SingleBodyParameterMessageFormatter.cs
- HtmlObjectListAdapter.cs
- CellRelation.cs
- OleDbDataReader.cs
- SafeFileMappingHandle.cs
- Bits.cs
- WebPartMinimizeVerb.cs
- TagPrefixInfo.cs
- EventData.cs
- securestring.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- PointF.cs
- StandardToolWindows.cs
- Registry.cs
- RowParagraph.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MergeEnumerator.cs
- uribuilder.cs
- Duration.cs
- HtmlPageAdapter.cs
- SQLResource.cs
- Quaternion.cs
- FormsAuthentication.cs
- activationcontext.cs
- SetStateEventArgs.cs
- ExtensionQuery.cs
- ButtonField.cs
- PeerInvitationResponse.cs
- CompressionTransform.cs
- uribuilder.cs
- SqlCaseSimplifier.cs
- AsyncResult.cs
- ModelTreeEnumerator.cs
- TrackingMemoryStreamFactory.cs
- PropertyEmitter.cs
- StorageComplexTypeMapping.cs
- TextAnchor.cs
- TableLayoutCellPaintEventArgs.cs
- DataSourceControlBuilder.cs
- PreviewPageInfo.cs
- WebControlAdapter.cs
- HtmlInputControl.cs
- COSERVERINFO.cs
- GenericUriParser.cs
- AuthenticationServiceManager.cs
- DbInsertCommandTree.cs
- TagMapInfo.cs
- UriTemplateLiteralPathSegment.cs
- StringSource.cs
- HandlerElementCollection.cs
- XslTransform.cs
- RadioButton.cs
- SiteMapPath.cs
- WebPartDisplayModeCollection.cs
- Renderer.cs
- WebConvert.cs
- ParameterCollection.cs
- Transactions.cs
- Timeline.cs
- IPPacketInformation.cs
- AttributeCollection.cs
- IfJoinedCondition.cs
- SafeFreeMibTable.cs
- ExternalDataExchangeClient.cs
- MaterialCollection.cs
- HandleCollector.cs
- UInt32.cs
- AlphaSortedEnumConverter.cs
- ProfileGroupSettingsCollection.cs
- EntityParameter.cs
- GenericWebPart.cs
- StoreItemCollection.cs
- SqlDataAdapter.cs
- OdbcRowUpdatingEvent.cs
- TextClipboardData.cs
- XmlSchemaSequence.cs
- manifestimages.cs
- DataKeyCollection.cs
- HScrollProperties.cs
- SystemInformation.cs
- DataGridViewRowStateChangedEventArgs.cs
- HtmlButton.cs
- SafeWaitHandle.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- BufferAllocator.cs
- FrameworkContentElement.cs
- GroupItem.cs
- DesignTimeVisibleAttribute.cs
- ComplexPropertyEntry.cs
- RowToFieldTransformer.cs
- Rect3DConverter.cs
- StreamWithDictionary.cs