Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DefaultValidator.cs
- ColorTransformHelper.cs
- ProfilePropertySettingsCollection.cs
- DiscoveryDocumentReference.cs
- IconBitmapDecoder.cs
- PermissionRequestEvidence.cs
- ImageField.cs
- GeneralTransform2DTo3DTo2D.cs
- SqlMethodAttribute.cs
- UIntPtr.cs
- FillRuleValidation.cs
- webbrowsersite.cs
- LinkButton.cs
- SendingRequestEventArgs.cs
- PerfCounterSection.cs
- HostingEnvironmentSection.cs
- ConsumerConnectionPointCollection.cs
- SqlErrorCollection.cs
- TargetConverter.cs
- WebPartsPersonalization.cs
- FixedSOMSemanticBox.cs
- DragCompletedEventArgs.cs
- InheritanceAttribute.cs
- RtType.cs
- ObfuscateAssemblyAttribute.cs
- ApplicationSecurityManager.cs
- ActivityValidator.cs
- WpfXamlLoader.cs
- DataGridViewDataErrorEventArgs.cs
- MatrixCamera.cs
- SqlExpressionNullability.cs
- ClonableStack.cs
- Operators.cs
- ReadOnlyCollectionBuilder.cs
- PowerEase.cs
- TranslateTransform.cs
- PageClientProxyGenerator.cs
- DispatcherHooks.cs
- VariableQuery.cs
- FileStream.cs
- SQLStringStorage.cs
- ReflectTypeDescriptionProvider.cs
- AsyncOperation.cs
- ValueHandle.cs
- EventWaitHandleSecurity.cs
- CorrelationToken.cs
- WhitespaceRuleLookup.cs
- ConfigurationStrings.cs
- WebHttpBinding.cs
- SoapAttributeAttribute.cs
- SendReply.cs
- GatewayIPAddressInformationCollection.cs
- DoubleConverter.cs
- ColorInterpolationModeValidation.cs
- SQLMoney.cs
- JoinSymbol.cs
- Span.cs
- CannotUnloadAppDomainException.cs
- Stylesheet.cs
- MdiWindowListStrip.cs
- Point.cs
- TextTreePropertyUndoUnit.cs
- CollectionConverter.cs
- TraceListeners.cs
- CompiledRegexRunnerFactory.cs
- ExtendedPropertyCollection.cs
- ToolZone.cs
- LongValidator.cs
- MobileControlsSection.cs
- TransformCollection.cs
- QuarticEase.cs
- HostUtils.cs
- TextServicesManager.cs
- AsymmetricSignatureDeformatter.cs
- documentsequencetextpointer.cs
- ScaleTransform.cs
- RefExpr.cs
- UserNamePasswordServiceCredential.cs
- recordstatefactory.cs
- WebPartZoneBase.cs
- TextBox.cs
- SamlAssertion.cs
- TextTreeTextBlock.cs
- WindowsTokenRoleProvider.cs
- COM2Properties.cs
- CheckableControlBaseAdapter.cs
- TemplateEditingFrame.cs
- OracleDataReader.cs
- MonitorWrapper.cs
- AttachmentService.cs
- WebPartManagerInternals.cs
- ProfileProvider.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- LogLogRecordHeader.cs
- BooleanAnimationBase.cs
- LogLogRecordHeader.cs
- DocumentViewer.cs
- XmlDataSourceNodeDescriptor.cs
- StackSpiller.Generated.cs
- ServiceNameElement.cs