Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CollectionContainer.cs
- HtmlGenericControl.cs
- StringToken.cs
- OracleInternalConnection.cs
- SocketAddress.cs
- ErrorFormatter.cs
- WindowsFont.cs
- ClickablePoint.cs
- InputLanguageCollection.cs
- BitmapEffect.cs
- Model3DGroup.cs
- BufferModesCollection.cs
- AutomationPropertyInfo.cs
- WindowsRegion.cs
- CodeTypeDeclaration.cs
- Constraint.cs
- HtmlElementCollection.cs
- SchemaCollectionPreprocessor.cs
- SecurityDescriptor.cs
- ResolvedKeyFrameEntry.cs
- FixedPage.cs
- WindowsGraphicsCacheManager.cs
- CookielessHelper.cs
- LineServicesRun.cs
- ToolStripScrollButton.cs
- WeakReferenceKey.cs
- JsonDeserializer.cs
- DbCommandDefinition.cs
- AppDomainAttributes.cs
- WebControlAdapter.cs
- SchemaObjectWriter.cs
- ParameterReplacerVisitor.cs
- DesignerAutoFormat.cs
- DataColumnCollection.cs
- XmlSchemaInclude.cs
- ExceptionValidationRule.cs
- BaseParaClient.cs
- DependencyPropertyKey.cs
- DropAnimation.xaml.cs
- CollectionsUtil.cs
- IntegerValidator.cs
- NamedObject.cs
- Selector.cs
- ExceptionHandlers.cs
- RemotingAttributes.cs
- SamlAssertionKeyIdentifierClause.cs
- SiteMapNode.cs
- Path.cs
- Parameter.cs
- DataKey.cs
- DuplicateWaitObjectException.cs
- ImpersonateTokenRef.cs
- WsdlBuildProvider.cs
- DbConnectionPoolGroup.cs
- ResourceAssociationSet.cs
- DbConnectionPoolCounters.cs
- Converter.cs
- EntityDataSourceContextDisposingEventArgs.cs
- MediaContextNotificationWindow.cs
- NullableDecimalAverageAggregationOperator.cs
- MimeTypeAttribute.cs
- ControlCollection.cs
- ResourceManagerWrapper.cs
- Dictionary.cs
- QilXmlWriter.cs
- TextElement.cs
- ColorMap.cs
- UnsafeNativeMethods.cs
- MouseEvent.cs
- NestPullup.cs
- XmlDigitalSignatureProcessor.cs
- DebuggerAttributes.cs
- ObjectSpanRewriter.cs
- Models.cs
- ClaimComparer.cs
- TableLayoutStyle.cs
- SamlAttribute.cs
- NativeMethods.cs
- DesignerDataConnection.cs
- ImageList.cs
- AttributeEmitter.cs
- XpsResourceDictionary.cs
- PersonalizationStateInfoCollection.cs
- Zone.cs
- EntitySqlException.cs
- TypeInformation.cs
- WmiEventSink.cs
- HealthMonitoringSectionHelper.cs
- TraceUtility.cs
- Delay.cs
- ValueOfAction.cs
- QueryOperator.cs
- SetterBase.cs
- XPathNodeIterator.cs
- CssClassPropertyAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DefaultHttpHandler.cs
- XmlSchemaNotation.cs
- ColumnWidthChangingEvent.cs