Code:
/ 4.0 / 4.0 / untmp / 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 Dictionary normalizerRewrites;
/// 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, Dictionary normalizerRewrites)
{
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 Dictionary NormalizerRewrites
{
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
- BackStopAuthenticationModule.cs
- HttpHandlerAction.cs
- RequestUriProcessor.cs
- SimpleApplicationHost.cs
- TimersDescriptionAttribute.cs
- DigestComparer.cs
- TableLayoutSettingsTypeConverter.cs
- HttpGetProtocolImporter.cs
- ConfigXmlText.cs
- TrustSection.cs
- HtmlInputHidden.cs
- DataException.cs
- ErrorEventArgs.cs
- Pair.cs
- FlowLayoutSettings.cs
- X509Certificate2Collection.cs
- MDIWindowDialog.cs
- Icon.cs
- AsyncCompletedEventArgs.cs
- _HelperAsyncResults.cs
- InputLanguageManager.cs
- CaseCqlBlock.cs
- validationstate.cs
- ProfileGroupSettings.cs
- WorkflowCreationContext.cs
- VerificationAttribute.cs
- PreloadHost.cs
- CompilerParameters.cs
- TypeConvertions.cs
- StringInfo.cs
- SoundPlayerAction.cs
- SolidColorBrush.cs
- DataGridViewTextBoxColumn.cs
- PropertyMapper.cs
- DefaultPerformanceCounters.cs
- MouseButton.cs
- SAPIEngineTypes.cs
- FactoryRecord.cs
- GeometryCollection.cs
- ListViewItemEventArgs.cs
- PropertyToken.cs
- GenericRootAutomationPeer.cs
- CDSsyncETWBCLProvider.cs
- CoTaskMemUnicodeSafeHandle.cs
- ReceiveParametersContent.cs
- CheckBoxField.cs
- Command.cs
- TraceSection.cs
- RSAPKCS1SignatureFormatter.cs
- OracleDateTime.cs
- BeginEvent.cs
- DataShape.cs
- SchemaName.cs
- ConnectionStringSettingsCollection.cs
- CFStream.cs
- DrawListViewSubItemEventArgs.cs
- RegistryPermission.cs
- baseaxisquery.cs
- ComponentChangingEvent.cs
- GestureRecognitionResult.cs
- DoubleIndependentAnimationStorage.cs
- MarginsConverter.cs
- PeerNameRegistration.cs
- BooleanConverter.cs
- WebPartConnection.cs
- RecordConverter.cs
- XPathArrayIterator.cs
- CqlIdentifiers.cs
- DataGridViewComboBoxEditingControl.cs
- Selection.cs
- MarkupObject.cs
- EntityReference.cs
- CollectionDataContract.cs
- GroupQuery.cs
- ValidationEventArgs.cs
- Canvas.cs
- NeutralResourcesLanguageAttribute.cs
- _HTTPDateParse.cs
- WorkflowPersistenceService.cs
- StrokeDescriptor.cs
- ScrollBarRenderer.cs
- Translator.cs
- GenericWebPart.cs
- PropertyItem.cs
- XmlWriterTraceListener.cs
- SafeNativeMethods.cs
- BaseComponentEditor.cs
- CertificateElement.cs
- TagMapInfo.cs
- SoapTransportImporter.cs
- ToolStripProgressBar.cs
- ObjectCloneHelper.cs
- ButtonPopupAdapter.cs
- CodeRemoveEventStatement.cs
- HttpCacheParams.cs
- CssStyleCollection.cs
- ExtendedPropertyCollection.cs
- GlyphsSerializer.cs
- SelectedPathEditor.cs
- ConfigXmlText.cs