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
- InputBuffer.cs
- OleDbConnectionFactory.cs
- TemplateBaseAction.cs
- RootDesignerSerializerAttribute.cs
- ListBox.cs
- OleDbCommand.cs
- TextSerializer.cs
- FunctionDetailsReader.cs
- XmlTextWriter.cs
- X509SubjectKeyIdentifierClause.cs
- Size3DConverter.cs
- PropertyExpression.cs
- KeyMatchBuilder.cs
- DataTableCollection.cs
- WasHostedComPlusFactory.cs
- SimpleTextLine.cs
- DoubleLinkList.cs
- RightsManagementPermission.cs
- sqlser.cs
- ExtensionWindowHeader.cs
- DefaultValueAttribute.cs
- StateMachine.cs
- HtmlInputCheckBox.cs
- DispatchWrapper.cs
- UseLicense.cs
- RTLAwareMessageBox.cs
- CompensatableTransactionScopeActivityDesigner.cs
- _SSPISessionCache.cs
- Helpers.cs
- TablePatternIdentifiers.cs
- ScrollViewerAutomationPeer.cs
- ListParagraph.cs
- DescriptionAttribute.cs
- XmlWrappingReader.cs
- PerformanceCounters.cs
- WebZone.cs
- ContextMenu.cs
- DataGridViewCheckBoxColumn.cs
- TagPrefixInfo.cs
- Point3DAnimation.cs
- WindowsFormsHostPropertyMap.cs
- CodeExpressionCollection.cs
- SplitterCancelEvent.cs
- BuildProviderAppliesToAttribute.cs
- XamlInt32CollectionSerializer.cs
- WebPartTransformerCollection.cs
- COM2PropertyDescriptor.cs
- ProcessHostMapPath.cs
- FlagsAttribute.cs
- ipaddressinformationcollection.cs
- StatusStrip.cs
- Primitive.cs
- WebEventCodes.cs
- TextTrailingCharacterEllipsis.cs
- MimeObjectFactory.cs
- XslCompiledTransform.cs
- CodeTypeConstructor.cs
- ClientSideProviderDescription.cs
- AssemblyAttributesGoHere.cs
- ReferencedAssembly.cs
- XNameConverter.cs
- XmlToDatasetMap.cs
- MarkupCompiler.cs
- ExpressionLink.cs
- OdbcPermission.cs
- TagPrefixInfo.cs
- PowerModeChangedEventArgs.cs
- KerberosTokenFactoryCredential.cs
- SerializableTypeCodeDomSerializer.cs
- CacheChildrenQuery.cs
- ProfessionalColors.cs
- DesignTimeParseData.cs
- DrawingState.cs
- WebPartZoneDesigner.cs
- DataGridState.cs
- PageHandlerFactory.cs
- CompilerState.cs
- AsyncMethodInvoker.cs
- WebServiceData.cs
- SecurityTokenException.cs
- XPathNavigatorKeyComparer.cs
- ToolStripItemTextRenderEventArgs.cs
- AutoFocusStyle.xaml.cs
- DesignOnlyAttribute.cs
- BrushProxy.cs
- HttpRequestCacheValidator.cs
- GenericTypeParameterConverter.cs
- SortDescription.cs
- MultiSelector.cs
- SqlTrackingQuery.cs
- RelationshipConverter.cs
- DispatcherHookEventArgs.cs
- ValueTable.cs
- DataFormats.cs
- AbsoluteQuery.cs
- OdbcConnectionStringbuilder.cs
- DataGridAutoFormatDialog.cs
- SchemaTypeEmitter.cs
- MouseEvent.cs
- ProfilePropertySettingsCollection.cs