Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / DbFunctionCommandTree.cs / 2 / 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
- SecurityTokenResolver.cs
- ColorKeyFrameCollection.cs
- RightsManagementEncryptedStream.cs
- ToolStripItemEventArgs.cs
- InheritanceContextHelper.cs
- OleDbDataReader.cs
- DataBinding.cs
- AutomationPropertyInfo.cs
- BitStream.cs
- CollectionBuilder.cs
- DBConcurrencyException.cs
- EntityWithChangeTrackerStrategy.cs
- PasswordDeriveBytes.cs
- ListItem.cs
- ComplexObject.cs
- SafeLibraryHandle.cs
- ObjectDataSourceDesigner.cs
- FilteredAttributeCollection.cs
- CookieProtection.cs
- CodeIterationStatement.cs
- URI.cs
- DiffuseMaterial.cs
- DrawingContextDrawingContextWalker.cs
- EditCommandColumn.cs
- CompositeControl.cs
- DecimalKeyFrameCollection.cs
- HtmlGenericControl.cs
- NavigationProgressEventArgs.cs
- ResourceDisplayNameAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- SQLRoleProvider.cs
- CacheEntry.cs
- IdentityHolder.cs
- ReceiveSecurityHeaderElementManager.cs
- XPathDocumentIterator.cs
- SoapCodeExporter.cs
- Itemizer.cs
- Content.cs
- Overlapped.cs
- ToolStripRenderer.cs
- ConstraintEnumerator.cs
- DrawingCollection.cs
- CLSCompliantAttribute.cs
- DocumentGridPage.cs
- DocumentViewerBase.cs
- SmtpNetworkElement.cs
- LayoutUtils.cs
- DeploymentSectionCache.cs
- DeviceFiltersSection.cs
- ImportCatalogPart.cs
- GradientStopCollection.cs
- CreateUserWizardAutoFormat.cs
- TemplateDefinition.cs
- Matrix3D.cs
- columnmapfactory.cs
- SiteOfOriginContainer.cs
- TemplateColumn.cs
- ToolStripLocationCancelEventArgs.cs
- Win32PrintDialog.cs
- isolationinterop.cs
- ServiceManagerHandle.cs
- WCFModelStrings.Designer.cs
- ColorPalette.cs
- ListItem.cs
- TraceHwndHost.cs
- SpecialNameAttribute.cs
- AddInEnvironment.cs
- SiteMapNodeItemEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- EntitySetBase.cs
- PropertyGridCommands.cs
- _IPv6Address.cs
- MaskedTextBoxTextEditor.cs
- ConnectivityStatus.cs
- ContentElement.cs
- columnmapfactory.cs
- ReferentialConstraintRoleElement.cs
- ChildTable.cs
- DataGridGeneralPage.cs
- Int32CollectionValueSerializer.cs
- CharKeyFrameCollection.cs
- XmlDictionaryReaderQuotas.cs
- EmptyWithCancelationCheckWorkItem.cs
- BitmapFrame.cs
- DesignerLinkAdapter.cs
- FloaterBaseParagraph.cs
- FrameworkObject.cs
- ParentUndoUnit.cs
- XsdBuildProvider.cs
- ExtensionQuery.cs
- XmlAttributeCache.cs
- DependencyPropertyAttribute.cs
- ObjectQuery.cs
- CustomSignedXml.cs
- StackOverflowException.cs
- DSASignatureFormatter.cs
- OrderedHashRepartitionEnumerator.cs
- SqlConnection.cs
- CommonDialog.cs
- HttpEncoder.cs