Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbFunctionCommandTree.cs / 1 / DbFunctionCommandTree.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees.Internal; namespace System.Data.Common.CommandTrees { ////// Represents a function invocation expressed as a canonical command tree /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")] public sealed class DbFunctionCommandTree : DbCommandTree { private readonly EdmFunction _edmFunction; private readonly TypeUsage _resultType; ////// Constructs a new DbFunctionCommandTree that uses the specified metadata workspace, data space and function metadata /// /// The metadata workspace that the command tree should use. /// The logical 'space' that metadata in the expressions used in this command tree must belong to. /// /// ////// , or is null /*CQT_PUBLIC_API(*/internal/*)*/ DbFunctionCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, EdmFunction edmFunction, TypeUsage resultType) : base(metadata, dataSpace) { using (new EntityBid.ScopeAuto(" does not represent a valid data space or /// is a composable function %d#", this.ObjectId)) { EntityUtil.CheckArgumentNull(edmFunction, "edmFunction"); _edmFunction = edmFunction; _resultType = resultType; } } /// /// Gets the [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] public EdmFunction EdmFunction { get { return _edmFunction; } } ///that represents the function to invoke /// /// Gets the result type of the function; currently constrained to be a Collection of /// RowTypes. Unlike typical RowType instance, merely indicates name/type not parameter /// order. /// public TypeUsage ResultType { get { return _resultType; } } internal override DbCommandTreeKind CommandTreeKind { get { return DbCommandTreeKind.Function; } } internal override void DumpStructure(ExpressionDumper dumper) { if (this.EdmFunction != null) { dumper.Dump(this.EdmFunction); } } internal override string PrintTree(ExpressionPrinter printer) { return printer.Print(this); } internal override void Replace(ExpressionReplacer callback) { throw EntityUtil.NotSupported(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Data.Common.CommandTrees.Internal; namespace System.Data.Common.CommandTrees { ////// Represents a function invocation expressed as a canonical command tree /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Db")] public sealed class DbFunctionCommandTree : DbCommandTree { private readonly EdmFunction _edmFunction; private readonly TypeUsage _resultType; ////// Constructs a new DbFunctionCommandTree that uses the specified metadata workspace, data space and function metadata /// /// The metadata workspace that the command tree should use. /// The logical 'space' that metadata in the expressions used in this command tree must belong to. /// /// ////// , or is null /*CQT_PUBLIC_API(*/internal/*)*/ DbFunctionCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, EdmFunction edmFunction, TypeUsage resultType) : base(metadata, dataSpace) { using (new EntityBid.ScopeAuto(" does not represent a valid data space or /// is a composable function %d#", this.ObjectId)) { EntityUtil.CheckArgumentNull(edmFunction, "edmFunction"); _edmFunction = edmFunction; _resultType = resultType; } } /// /// Gets the [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] public EdmFunction EdmFunction { get { return _edmFunction; } } ///that represents the function to invoke /// /// Gets the result type of the function; currently constrained to be a Collection of /// RowTypes. Unlike typical RowType instance, merely indicates name/type not parameter /// order. /// public TypeUsage ResultType { get { return _resultType; } } internal override DbCommandTreeKind CommandTreeKind { get { return DbCommandTreeKind.Function; } } internal override void DumpStructure(ExpressionDumper dumper) { if (this.EdmFunction != null) { dumper.Dump(this.EdmFunction); } } internal override string PrintTree(ExpressionPrinter printer) { return printer.Print(this); } internal override void Replace(ExpressionReplacer callback) { throw EntityUtil.NotSupported(); } } } // 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
- SqlRecordBuffer.cs
- ByteKeyFrameCollection.cs
- DataSourceSelectArguments.cs
- XmlEntityReference.cs
- ExtendedPropertyCollection.cs
- SafeRightsManagementPubHandle.cs
- NumberSubstitution.cs
- ADMembershipUser.cs
- CodeArgumentReferenceExpression.cs
- FastEncoder.cs
- OracleCommandSet.cs
- EntityDataSourceMemberPath.cs
- SamlConditions.cs
- MenuScrollingVisibilityConverter.cs
- Message.cs
- DuplexSecurityProtocolFactory.cs
- Page.cs
- RectAnimationClockResource.cs
- HttpWebResponse.cs
- CryptoKeySecurity.cs
- StringAttributeCollection.cs
- SrgsRuleRef.cs
- SendSecurityHeader.cs
- EventLogQuery.cs
- BitmapEffectInput.cs
- EventlogProvider.cs
- GridViewSelectEventArgs.cs
- Binding.cs
- Calendar.cs
- RectangleGeometry.cs
- OutputCacheSettings.cs
- XmlProcessingInstruction.cs
- XmlTypeAttribute.cs
- TreeNode.cs
- DatagridviewDisplayedBandsData.cs
- UnsafeNativeMethods.cs
- RewritingValidator.cs
- RegularExpressionValidator.cs
- TextBox.cs
- TraceHandler.cs
- ConfigurationSettings.cs
- DataGridViewCellStyleBuilderDialog.cs
- IDictionary.cs
- ToolStripLocationCancelEventArgs.cs
- MonitoringDescriptionAttribute.cs
- Validator.cs
- ProfileInfo.cs
- URLAttribute.cs
- EnumMemberAttribute.cs
- StateChangeEvent.cs
- StrokeDescriptor.cs
- XsltConvert.cs
- NetworkInformationPermission.cs
- InvalidPrinterException.cs
- ClientApiGenerator.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HttpContextWrapper.cs
- Brush.cs
- SequentialUshortCollection.cs
- PropertyEmitterBase.cs
- TreeViewHitTestInfo.cs
- SchemaImporterExtensionsSection.cs
- SettingsSection.cs
- SqlUserDefinedTypeAttribute.cs
- ComplexType.cs
- CatalogPartChrome.cs
- IPPacketInformation.cs
- TimelineGroup.cs
- IPHostEntry.cs
- XPathSelectionIterator.cs
- mansign.cs
- QueryTask.cs
- TextTreeTextNode.cs
- DataServiceExpressionVisitor.cs
- DbDataSourceEnumerator.cs
- brushes.cs
- TimeSpanStorage.cs
- SafeFileMappingHandle.cs
- ImageClickEventArgs.cs
- ColumnWidthChangingEvent.cs
- WebPartHelpVerb.cs
- DataPager.cs
- C14NUtil.cs
- controlskin.cs
- ChannelDemuxer.cs
- XmlAttributeProperties.cs
- ServiceModelEnumValidatorAttribute.cs
- SqlParameterCollection.cs
- IndicCharClassifier.cs
- ExceptionTrace.cs
- FileIOPermission.cs
- ProgressBarAutomationPeer.cs
- SimpleRecyclingCache.cs
- DataServiceQueryException.cs
- Events.cs
- ThreadStateException.cs
- HttpPostedFile.cs
- CachedPathData.cs
- SafeBitVector32.cs
- TableLayout.cs