Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ALinq / QueryComponents.cs / 1305376 / QueryComponents.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// The result from a expression to query components translation // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System; using System.Collections.Generic; using System.Linq.Expressions; #endregion Namespaces. ///Represents the components of query. internal class QueryComponents { #region Private fields. ///URI for query private readonly Uri uri; ///type private readonly Type lastSegmentType; ///Records the generated-to-source rewrites created. private readonly DictionarynormalizerRewrites; /// selector Lambda Expression private readonly LambdaExpression projection; ///Version for query private Version version; #endregion Private fields. ////// Constructs a container for query components /// /// URI for the query /// Version for the query /// Element type for the query /// selector Lambda Expression /// Records the generated-to-source rewrites created (possibly null). internal QueryComponents(Uri uri, Version version, Type lastSegmentType, LambdaExpression projection, DictionarynormalizerRewrites) { this.projection = projection; this.normalizerRewrites = normalizerRewrites; this.lastSegmentType = lastSegmentType; this.uri = uri; this.version = version; } #region Internal properties. /// The translated uri for a query internal Uri Uri { get { return this.uri; } } ///Records the generated-to-source rewrites created. internal DictionaryNormalizerRewrites { get { return this.normalizerRewrites; } } /// The projection expression for a query internal LambdaExpression Projection { get { return this.projection; } } ///The last segment type for query internal Type LastSegmentType { get { return this.lastSegmentType; } } ///The data service version associated with the uri internal Version Version { get { return this.version; } #if !ASTORIA_LIGHT // Synchronous methods not available set { this.version = value; } #endif } #endregion Internal properties. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// The result from a expression to query components translation // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System; using System.Collections.Generic; using System.Linq.Expressions; #endregion Namespaces. ///Represents the components of query. internal class QueryComponents { #region Private fields. ///URI for query private readonly Uri uri; ///type private readonly Type lastSegmentType; ///Records the generated-to-source rewrites created. private readonly DictionarynormalizerRewrites; /// selector Lambda Expression private readonly LambdaExpression projection; ///Version for query private Version version; #endregion Private fields. ////// Constructs a container for query components /// /// URI for the query /// Version for the query /// Element type for the query /// selector Lambda Expression /// Records the generated-to-source rewrites created (possibly null). internal QueryComponents(Uri uri, Version version, Type lastSegmentType, LambdaExpression projection, DictionarynormalizerRewrites) { this.projection = projection; this.normalizerRewrites = normalizerRewrites; this.lastSegmentType = lastSegmentType; this.uri = uri; this.version = version; } #region Internal properties. /// The translated uri for a query internal Uri Uri { get { return this.uri; } } ///Records the generated-to-source rewrites created. internal DictionaryNormalizerRewrites { get { return this.normalizerRewrites; } } /// The projection expression for a query internal LambdaExpression Projection { get { return this.projection; } } ///The last segment type for query internal Type LastSegmentType { get { return this.lastSegmentType; } } ///The data service version associated with the uri internal Version Version { get { return this.version; } #if !ASTORIA_LIGHT // Synchronous methods not available set { this.version = value; } #endif } #endregion Internal properties. } } // 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
- ProxyWebPartManager.cs
- IHttpResponseInternal.cs
- HttpListener.cs
- Geometry3D.cs
- DiscoveryProxy.cs
- MetadataUtilsSmi.cs
- AttributeCollection.cs
- ImageListUtils.cs
- UDPClient.cs
- GenericWebPart.cs
- VersionedStreamOwner.cs
- PenContexts.cs
- DrawingServices.cs
- XmlSchemas.cs
- ImageIndexConverter.cs
- InternalRelationshipCollection.cs
- ScrollEvent.cs
- Light.cs
- TableCell.cs
- SelectedDatesCollection.cs
- SHA384.cs
- UInt64Storage.cs
- InvalidBodyAccessException.cs
- ResourceType.cs
- Message.cs
- DesignerAttribute.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- Point3DKeyFrameCollection.cs
- TypographyProperties.cs
- fixedPageContentExtractor.cs
- DataTemplateKey.cs
- AlternationConverter.cs
- TraceHandler.cs
- ToolboxDataAttribute.cs
- NestedContainer.cs
- PropertyMetadata.cs
- AlphabetConverter.cs
- RectangleHotSpot.cs
- SessionSwitchEventArgs.cs
- FileSecurity.cs
- PropertyKey.cs
- ReadOnlyDataSourceView.cs
- TdsParserHelperClasses.cs
- ColorMatrix.cs
- FontCollection.cs
- XamlBrushSerializer.cs
- ParserOptions.cs
- OptimalTextSource.cs
- WebPartConnectionCollection.cs
- ResourceManagerWrapper.cs
- NodeFunctions.cs
- FileClassifier.cs
- DoubleKeyFrameCollection.cs
- HtmlTextViewAdapter.cs
- CompilerGeneratedAttribute.cs
- DecimalConverter.cs
- LinearKeyFrames.cs
- WCFServiceClientProxyGenerator.cs
- TextLineBreak.cs
- UMPAttributes.cs
- CommandDevice.cs
- SoapInteropTypes.cs
- SymDocumentType.cs
- DashStyle.cs
- ConfigXmlAttribute.cs
- UidManager.cs
- ColumnTypeConverter.cs
- ReadContentAsBinaryHelper.cs
- BookmarkCallbackWrapper.cs
- SourceSwitch.cs
- SafeLocalMemHandle.cs
- XmlLanguageConverter.cs
- EndpointIdentityExtension.cs
- SafeThemeHandle.cs
- NetworkInformationPermission.cs
- XmlSchemaAttributeGroup.cs
- StringArrayConverter.cs
- CompilationUtil.cs
- ZoneMembershipCondition.cs
- ProjectedSlot.cs
- NullExtension.cs
- Point3DAnimationUsingKeyFrames.cs
- BitSet.cs
- TextDecoration.cs
- AssociatedControlConverter.cs
- BitmapSizeOptions.cs
- CachedCompositeFamily.cs
- WebPart.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ReaderContextStackData.cs
- PageCodeDomTreeGenerator.cs
- DataGridCell.cs
- TextRunTypographyProperties.cs
- TreeNodeConverter.cs
- SystemIcmpV6Statistics.cs
- Size.cs
- RNGCryptoServiceProvider.cs
- AggregateException.cs
- XmlSchemaSimpleContentExtension.cs
- TableLayoutPanelDesigner.cs