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
- SmtpFailedRecipientsException.cs
- PrePrepareMethodAttribute.cs
- AsymmetricAlgorithm.cs
- CodeStatementCollection.cs
- tooltip.cs
- DefaultEvaluationContext.cs
- SHA512Managed.cs
- DtcInterfaces.cs
- ExpressionWriter.cs
- DecoderBestFitFallback.cs
- SqlOuterApplyReducer.cs
- FacetChecker.cs
- DoubleAnimationUsingKeyFrames.cs
- Matrix3DConverter.cs
- BindingNavigator.cs
- FrameworkElement.cs
- ExpressionVisitorHelpers.cs
- AncestorChangedEventArgs.cs
- XmlUnspecifiedAttribute.cs
- mediapermission.cs
- StreamingContext.cs
- BinaryFormatterWriter.cs
- Pts.cs
- COM2IProvidePropertyBuilderHandler.cs
- ResXResourceSet.cs
- WebPartZoneCollection.cs
- ObjectPersistData.cs
- TableLayoutPanel.cs
- PathSegment.cs
- DivideByZeroException.cs
- DockProviderWrapper.cs
- RegexCode.cs
- MissingFieldException.cs
- TextFormatterContext.cs
- _ServiceNameStore.cs
- CodeTypeDelegate.cs
- Exception.cs
- MenuItemStyle.cs
- WhitespaceSignificantCollectionAttribute.cs
- PersonalizationProviderHelper.cs
- FontWeightConverter.cs
- AudioFormatConverter.cs
- EventHandlersStore.cs
- MobileCategoryAttribute.cs
- ResponseStream.cs
- PassportPrincipal.cs
- _LocalDataStoreMgr.cs
- RolePrincipal.cs
- BrowserCapabilitiesFactoryBase.cs
- FocusManager.cs
- Metafile.cs
- CollectionMarkupSerializer.cs
- NamedObject.cs
- Matrix3DConverter.cs
- JsonWriter.cs
- ToolStripDropDownButton.cs
- RedistVersionInfo.cs
- TrackingServices.cs
- PersonalizationEntry.cs
- RegexGroupCollection.cs
- CachedBitmap.cs
- DiscoveryMessageSequenceCD1.cs
- StringFormat.cs
- FontDriver.cs
- FaultHandlingFilter.cs
- EdmToObjectNamespaceMap.cs
- CompiledQueryCacheEntry.cs
- IUnknownConstantAttribute.cs
- StrokeCollectionDefaultValueFactory.cs
- URLAttribute.cs
- basevalidator.cs
- SerTrace.cs
- StorageAssociationTypeMapping.cs
- AppDomainFactory.cs
- DescendantOverDescendantQuery.cs
- ThreadLocal.cs
- NominalTypeEliminator.cs
- TextTreeTextBlock.cs
- AnimationClock.cs
- StrongNameKeyPair.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- HandleCollector.cs
- Error.cs
- SectionInput.cs
- FormatConvertedBitmap.cs
- _SafeNetHandles.cs
- DataGridTextBoxColumn.cs
- Script.cs
- DbConnectionPool.cs
- URLIdentityPermission.cs
- SecUtil.cs
- HtmlContainerControl.cs
- TextServicesHost.cs
- ScrollProperties.cs
- SessionStateSection.cs
- XmlSchemaInclude.cs
- SequentialUshortCollection.cs
- BaseCollection.cs
- SatelliteContractVersionAttribute.cs
- SubclassTypeValidatorAttribute.cs