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
- IgnoreFlushAndCloseStream.cs
- WindowsAuthenticationEventArgs.cs
- IHttpResponseInternal.cs
- ConfigurationException.cs
- HtmlForm.cs
- Preprocessor.cs
- WorkflowLayouts.cs
- Site.cs
- ThreadPool.cs
- FormClosedEvent.cs
- DetailsViewCommandEventArgs.cs
- KeyValueSerializer.cs
- GridProviderWrapper.cs
- HyperlinkAutomationPeer.cs
- HTTPNotFoundHandler.cs
- UnicastIPAddressInformationCollection.cs
- IPHostEntry.cs
- MailAddress.cs
- XmlCharacterData.cs
- ToolStripArrowRenderEventArgs.cs
- clipboard.cs
- ExtensionDataReader.cs
- ButtonChrome.cs
- HtmlGenericControl.cs
- ObjectItemNoOpAssemblyLoader.cs
- DataSetUtil.cs
- CorePropertiesFilter.cs
- SwitchAttribute.cs
- EastAsianLunisolarCalendar.cs
- RSAPKCS1SignatureFormatter.cs
- UnionExpr.cs
- StrokeSerializer.cs
- UserInitiatedNavigationPermission.cs
- XmlAnyElementAttributes.cs
- Substitution.cs
- FormatException.cs
- XmlSchemaElement.cs
- ParameterModifier.cs
- WebPartConnectionsConfigureVerb.cs
- IconConverter.cs
- HtmlTableRow.cs
- ConnectionConsumerAttribute.cs
- NGCSerializationManager.cs
- HandlerMappingMemo.cs
- SafeHandles.cs
- AudienceUriMode.cs
- EventMappingSettingsCollection.cs
- TableDetailsRow.cs
- GridViewPageEventArgs.cs
- BatchParser.cs
- HttpProfileGroupBase.cs
- AsyncSerializedWorker.cs
- XmlEntityReference.cs
- ItemChangedEventArgs.cs
- xmlsaver.cs
- RuntimeUtils.cs
- PenCursorManager.cs
- Item.cs
- ServiceContractListItemList.cs
- TailCallAnalyzer.cs
- StatusStrip.cs
- UserControlBuildProvider.cs
- ISAPIApplicationHost.cs
- ScrollContentPresenter.cs
- LayoutTable.cs
- PrintDocument.cs
- SqlGenericUtil.cs
- PropertyGroupDescription.cs
- CopyNodeSetAction.cs
- InArgumentConverter.cs
- AssemblyNameProxy.cs
- ToolStripItemBehavior.cs
- TableCell.cs
- NamedPipeWorkerProcess.cs
- ExpressionsCollectionEditor.cs
- serverconfig.cs
- ToolStrip.cs
- Comparer.cs
- RoutingEndpointTrait.cs
- InvalidOperationException.cs
- BuildProvider.cs
- DecoderExceptionFallback.cs
- ImageDrawing.cs
- EmbeddedMailObject.cs
- MsmqIntegrationBindingElement.cs
- SqlProfileProvider.cs
- TypeCollectionPropertyEditor.cs
- DataPointer.cs
- DebugInfoExpression.cs
- Activity.cs
- HostProtectionPermission.cs
- LambdaCompiler.Lambda.cs
- AnnotationDocumentPaginator.cs
- TypeCacheManager.cs
- VarRefManager.cs
- Control.cs
- CancelRequestedRecord.cs
- ImmutableObjectAttribute.cs
- BindableTemplateBuilder.cs
- xamlnodes.cs