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
- CompileXomlTask.cs
- XmlSchemaAnnotation.cs
- XmlAttributes.cs
- CompressedStack.cs
- Imaging.cs
- SystemIPGlobalProperties.cs
- MeasureData.cs
- CodeEventReferenceExpression.cs
- HttpModuleCollection.cs
- OdbcParameter.cs
- StylusDownEventArgs.cs
- _SpnDictionary.cs
- XPathNavigatorKeyComparer.cs
- TraceContextEventArgs.cs
- LifetimeServices.cs
- TransactionChannel.cs
- EntityReference.cs
- ExpressionBinding.cs
- StandardCommands.cs
- x509utils.cs
- SQLBinaryStorage.cs
- ErasingStroke.cs
- CacheDependency.cs
- BindingExpression.cs
- UIElementPropertyUndoUnit.cs
- DescendentsWalker.cs
- RowUpdatedEventArgs.cs
- RemotingConfiguration.cs
- MultiTouchSystemGestureLogic.cs
- PersonalizationProviderHelper.cs
- TypeForwardedToAttribute.cs
- ApplicationDirectoryMembershipCondition.cs
- AttributeUsageAttribute.cs
- ConnectionManagementElement.cs
- SchemaMerger.cs
- StylusShape.cs
- CompoundFileDeflateTransform.cs
- MsmqIntegrationChannelListener.cs
- LastQueryOperator.cs
- ScalarType.cs
- CancellableEnumerable.cs
- SmtpFailedRecipientException.cs
- COM2PropertyBuilderUITypeEditor.cs
- GeneralTransformGroup.cs
- FamilyMap.cs
- ExpandoClass.cs
- MailWriter.cs
- Axis.cs
- SecurityTokenException.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CompiledXpathExpr.cs
- FlowPosition.cs
- ProviderUtil.cs
- UTF8Encoding.cs
- StringDictionary.cs
- GB18030Encoding.cs
- CheckoutException.cs
- IWorkflowDebuggerService.cs
- Subtree.cs
- ValidatorCompatibilityHelper.cs
- Message.cs
- AdRotatorDesigner.cs
- SqlMetaData.cs
- StringSorter.cs
- PreservationFileWriter.cs
- AnalyzedTree.cs
- NameGenerator.cs
- OuterGlowBitmapEffect.cs
- WebBrowserHelper.cs
- DataError.cs
- TemplateNameScope.cs
- NamespaceDecl.cs
- StylusOverProperty.cs
- TreeView.cs
- DataGridViewRowConverter.cs
- CalendarDay.cs
- SystemWebSectionGroup.cs
- SectionUpdates.cs
- StrokeNodeOperations.cs
- ColorComboBox.cs
- ShaperBuffers.cs
- ErrorHandler.cs
- ServiceModelExtensionElement.cs
- DataTableCollection.cs
- AdRotator.cs
- PeerNameRegistration.cs
- ObservableCollection.cs
- SafeArrayTypeMismatchException.cs
- SafeViewOfFileHandle.cs
- CallbackValidatorAttribute.cs
- securestring.cs
- StateDesigner.LayoutSelectionGlyph.cs
- DefaultSettingsSection.cs
- TextTreeInsertElementUndoUnit.cs
- LOSFormatter.cs
- ToolBarButtonClickEvent.cs
- ValidatorCollection.cs
- FontUnit.cs
- DbConvert.cs
- ProcessRequestAsyncResult.cs