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
- SchemeSettingElementCollection.cs
- CompilerHelpers.cs
- PriorityQueue.cs
- TextDecorationCollection.cs
- VirtualDirectoryMappingCollection.cs
- SecurityContext.cs
- Decoder.cs
- DebugViewWriter.cs
- CanExecuteRoutedEventArgs.cs
- DeviceSpecificChoiceCollection.cs
- InternalTypeHelper.cs
- Rule.cs
- DataGridViewSelectedCellCollection.cs
- fixedPageContentExtractor.cs
- SrgsToken.cs
- CodeMemberMethod.cs
- TypographyProperties.cs
- CardSpaceSelector.cs
- PluralizationServiceUtil.cs
- HttpContextServiceHost.cs
- ActivityDesigner.cs
- Privilege.cs
- DummyDataSource.cs
- XmlNamespaceManager.cs
- SamlConstants.cs
- CommandTreeTypeHelper.cs
- DataSysAttribute.cs
- StateWorkerRequest.cs
- Material.cs
- TextElementEditingBehaviorAttribute.cs
- GetIndexBinder.cs
- PreProcessInputEventArgs.cs
- DataTableNewRowEvent.cs
- GridViewColumnHeader.cs
- PointAnimationUsingKeyFrames.cs
- EntityUtil.cs
- ResourceKey.cs
- MemberCollection.cs
- ProxyWebPartConnectionCollection.cs
- DataBindEngine.cs
- CollectionConverter.cs
- ClassValidator.cs
- CompilationSection.cs
- UIElementHelper.cs
- ListControlDesigner.cs
- webproxy.cs
- ConfigurationUtility.cs
- ObjectHandle.cs
- DataGridItemAttachedStorage.cs
- Crc32.cs
- DetailsViewPagerRow.cs
- EntityWithChangeTrackerStrategy.cs
- TemplateField.cs
- MergeFailedEvent.cs
- WindowsFormsDesignerOptionService.cs
- MaskInputRejectedEventArgs.cs
- Number.cs
- DocumentApplicationJournalEntry.cs
- AutomationPropertyInfo.cs
- SafeReversePInvokeHandle.cs
- XmlTypeMapping.cs
- ProfileSettings.cs
- MouseCaptureWithinProperty.cs
- TailPinnedEventArgs.cs
- UdpDuplexChannel.cs
- EdmComplexTypeAttribute.cs
- StartUpEventArgs.cs
- TransactionFilter.cs
- ProviderBase.cs
- PointLight.cs
- WSHttpBindingCollectionElement.cs
- ToolboxControl.cs
- PropertyPushdownHelper.cs
- OptimalTextSource.cs
- CssClassPropertyAttribute.cs
- ChannelPoolSettings.cs
- ToolStripEditorManager.cs
- StreamWithDictionary.cs
- InertiaTranslationBehavior.cs
- WebServiceTypeData.cs
- FormViewActionList.cs
- PropertyExpression.cs
- TextContainer.cs
- BamlBinaryWriter.cs
- StreamReader.cs
- XPathAncestorQuery.cs
- TreeViewItem.cs
- ReadWriteSpinLock.cs
- PrintPreviewGraphics.cs
- VisualCollection.cs
- sitestring.cs
- MulticastDelegate.cs
- XPathDescendantIterator.cs
- DataGridViewDataConnection.cs
- CellTreeNodeVisitors.cs
- TaskForm.cs
- ReachUIElementCollectionSerializerAsync.cs
- EditingCommands.cs
- ListBase.cs
- SqlProfileProvider.cs