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
- CachingHintValidation.cs
- Function.cs
- DataStreamFromComStream.cs
- OracleBinary.cs
- HtmlContainerControl.cs
- WorkflowInstanceSuspendedRecord.cs
- ApplicationCommands.cs
- ValidationRuleCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- StandardCommands.cs
- ObjectToken.cs
- LayoutTableCell.cs
- SQLMoneyStorage.cs
- MouseGestureConverter.cs
- CodeValidator.cs
- BevelBitmapEffect.cs
- WebPartConnectionsConnectVerb.cs
- TextTreeRootTextBlock.cs
- StringSorter.cs
- InputProcessorProfiles.cs
- CultureInfo.cs
- AVElementHelper.cs
- WebPartDescription.cs
- Documentation.cs
- HMACRIPEMD160.cs
- EditorBrowsableAttribute.cs
- CapabilitiesPattern.cs
- BitmapEffectDrawingContent.cs
- ParentUndoUnit.cs
- DBSqlParser.cs
- ColumnTypeConverter.cs
- ReaderWriterLockWrapper.cs
- IsolatedStorageFileStream.cs
- ClientTarget.cs
- sitestring.cs
- EventLogPermissionEntry.cs
- HitTestParameters.cs
- CollectionDataContractAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- KerberosRequestorSecurityToken.cs
- SqlWorkflowInstanceStoreLock.cs
- TextCompositionEventArgs.cs
- ColumnMap.cs
- OdbcParameter.cs
- FilterQueryOptionExpression.cs
- MailSettingsSection.cs
- _ServiceNameStore.cs
- RemoteWebConfigurationHost.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- CodeEntryPointMethod.cs
- RTTrackingProfile.cs
- WebServiceBindingAttribute.cs
- ClientApiGenerator.cs
- DataPagerCommandEventArgs.cs
- DispatcherOperation.cs
- AdministrationHelpers.cs
- XPathDocument.cs
- DebugTrace.cs
- ExpressionBuilderContext.cs
- Label.cs
- BasePattern.cs
- ObjectDisposedException.cs
- FlatButtonAppearance.cs
- SqlCachedBuffer.cs
- DataReceivedEventArgs.cs
- DataObject.cs
- GroupBoxAutomationPeer.cs
- Parameter.cs
- MarkupCompilePass2.cs
- XmlQueryOutput.cs
- PolicyStatement.cs
- ADMembershipProvider.cs
- PrivilegeNotHeldException.cs
- WinFormsComponentEditor.cs
- RouteParametersHelper.cs
- SqlGenericUtil.cs
- ZoomPercentageConverter.cs
- ObjectContext.cs
- HtmlInputText.cs
- SqlNamer.cs
- Vector3DAnimationBase.cs
- EventLogEntry.cs
- Expression.cs
- ActivationArguments.cs
- Int32Animation.cs
- SqlBuilder.cs
- DataFieldCollectionEditor.cs
- CustomCategoryAttribute.cs
- Font.cs
- WorkflowEventArgs.cs
- SimpleTypesSurrogate.cs
- SrgsGrammar.cs
- shaper.cs
- FontStyles.cs
- LoginView.cs
- QualifiedCellIdBoolean.cs
- GenerateTemporaryTargetAssembly.cs
- FrameworkContextData.cs
- DirectionalLight.cs
- Cursor.cs