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
- IProducerConsumerCollection.cs
- SiteMapDataSource.cs
- Int16Converter.cs
- ViewCellRelation.cs
- SafeRightsManagementHandle.cs
- IUnknownConstantAttribute.cs
- ListDictionary.cs
- NullableIntMinMaxAggregationOperator.cs
- streamingZipPartStream.cs
- DecoderBestFitFallback.cs
- SRef.cs
- MetadataPropertyCollection.cs
- Serializer.cs
- TemplateComponentConnector.cs
- XmlSchema.cs
- __Filters.cs
- PresentationAppDomainManager.cs
- UInt64.cs
- IsolatedStorage.cs
- FixedNode.cs
- Baml2006ReaderFrame.cs
- CursorConverter.cs
- DefaultValueAttribute.cs
- WindowsAuthenticationModule.cs
- SamlAssertion.cs
- LicenseProviderAttribute.cs
- ObsoleteAttribute.cs
- HttpFileCollection.cs
- _UriTypeConverter.cs
- SignatureResourcePool.cs
- CombinedGeometry.cs
- WebReferencesBuildProvider.cs
- AdCreatedEventArgs.cs
- precedingsibling.cs
- AsymmetricKeyExchangeDeformatter.cs
- AutoResetEvent.cs
- InkCanvasInnerCanvas.cs
- UnauthorizedAccessException.cs
- GridViewDesigner.cs
- DataGridTablesFactory.cs
- Site.cs
- StackOverflowException.cs
- BlurBitmapEffect.cs
- QilSortKey.cs
- WindowVisualStateTracker.cs
- DataListAutoFormat.cs
- CustomAssemblyResolver.cs
- DateRangeEvent.cs
- FixedSOMTableCell.cs
- DrawingGroup.cs
- WindowsAltTab.cs
- ParameterRefs.cs
- NodeCounter.cs
- TranslateTransform.cs
- MouseBinding.cs
- PropertyEmitter.cs
- _BufferOffsetSize.cs
- NavigationHelper.cs
- SemanticAnalyzer.cs
- ADMembershipUser.cs
- NonNullItemCollection.cs
- DiscoveryReferences.cs
- DocumentPageViewAutomationPeer.cs
- ScriptingRoleServiceSection.cs
- ELinqQueryState.cs
- SyndicationDeserializer.cs
- ChildrenQuery.cs
- BlurEffect.cs
- ProfessionalColorTable.cs
- HierarchicalDataSourceControl.cs
- TextViewBase.cs
- __TransparentProxy.cs
- FontStyleConverter.cs
- DataGridParentRows.cs
- ToolStripPanel.cs
- RedBlackList.cs
- TakeOrSkipQueryOperator.cs
- ColumnHeaderConverter.cs
- ScriptManager.cs
- HandleCollector.cs
- XmlAttributeOverrides.cs
- COM2ExtendedUITypeEditor.cs
- UnsafeNativeMethods.cs
- externdll.cs
- FloaterParagraph.cs
- XmlEncodedRawTextWriter.cs
- BaseCollection.cs
- UnlockInstanceAsyncResult.cs
- ClientTargetCollection.cs
- MetadataArtifactLoaderCompositeResource.cs
- StorageEntityTypeMapping.cs
- ProfileGroupSettingsCollection.cs
- FreezableCollection.cs
- COM2ComponentEditor.cs
- SafeReversePInvokeHandle.cs
- ProfessionalColorTable.cs
- ImpersonationOption.cs
- GroupByQueryOperator.cs
- ComplexTypeEmitter.cs
- ReferenceSchema.cs