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
- PieceNameHelper.cs
- XmlNavigatorFilter.cs
- EntitySqlQueryState.cs
- ExpressionBuilder.cs
- ObjectListCommand.cs
- storepermission.cs
- ResXFileRef.cs
- CryptoProvider.cs
- DataList.cs
- CharConverter.cs
- SecurityKeyIdentifierClause.cs
- ScrollViewerAutomationPeer.cs
- WrappedIUnknown.cs
- Knowncolors.cs
- FutureFactory.cs
- WebConfigurationHostFileChange.cs
- WebServiceBindingAttribute.cs
- CommandConverter.cs
- PartialTrustVisibleAssembliesSection.cs
- TrackingProfileCache.cs
- QueryReaderSettings.cs
- StatusBar.cs
- CompositeFontInfo.cs
- QilTypeChecker.cs
- ParsedRoute.cs
- ComPersistableTypeElementCollection.cs
- DoubleLinkList.cs
- FileDialog_Vista_Interop.cs
- DetailsViewRowCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- TreeView.cs
- X509IssuerSerialKeyIdentifierClause.cs
- CatalogZone.cs
- FrameworkTemplate.cs
- ProcessDesigner.cs
- WebControlParameterProxy.cs
- TraceSection.cs
- Header.cs
- _SslStream.cs
- WebPartRestoreVerb.cs
- ClassGenerator.cs
- CodeChecksumPragma.cs
- OrderedHashRepartitionStream.cs
- CancellationHandlerDesigner.cs
- StorageEntitySetMapping.cs
- ResourceContainer.cs
- DesignerSerializerAttribute.cs
- BoolLiteral.cs
- WebPartsPersonalizationAuthorization.cs
- CollectionViewGroup.cs
- BookmarkCallbackWrapper.cs
- Enlistment.cs
- CopyNodeSetAction.cs
- PermissionRequestEvidence.cs
- QueryExpr.cs
- HtmlDocument.cs
- XMLUtil.cs
- ListItemParagraph.cs
- FormViewModeEventArgs.cs
- ModelFunctionTypeElement.cs
- WebPartTransformerCollection.cs
- SiteMapPath.cs
- TextDecoration.cs
- ProcessModelSection.cs
- TypeSystem.cs
- FilterableData.cs
- DependencyPropertyHelper.cs
- GlyphRunDrawing.cs
- GPRECT.cs
- _TransmitFileOverlappedAsyncResult.cs
- PropertyMapper.cs
- SplitterPanel.cs
- AttributeProviderAttribute.cs
- ADConnectionHelper.cs
- NonVisualControlAttribute.cs
- DocumentViewerHelper.cs
- RegularExpressionValidator.cs
- Math.cs
- AutomationTextAttribute.cs
- LocalizableResourceBuilder.cs
- FontCollection.cs
- BitmapEffectGeneralTransform.cs
- XmlILIndex.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PrivateFontCollection.cs
- XamlBrushSerializer.cs
- DbMetaDataCollectionNames.cs
- TextDecorationCollectionConverter.cs
- BaseDataList.cs
- XmlResolver.cs
- CodeNamespaceImportCollection.cs
- DbModificationCommandTree.cs
- ColorMatrix.cs
- HtmlInputCheckBox.cs
- PersonalizableTypeEntry.cs
- IdentityValidationException.cs
- NumberEdit.cs
- WrappingXamlSchemaContext.cs
- Compilation.cs
- CustomAttributeFormatException.cs