Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ALinq / ProjectionQueryOptionExpression.cs / 1305376 / ProjectionQueryOptionExpression.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Respresents a projection query option in resource bound expression tree.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
#region Namespaces.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq.Expressions;
#endregion Namespaces.
///
/// An resource specific expression representing a projection query option.
///
internal class ProjectionQueryOptionExpression : QueryOptionExpression
{
#region Private fields.
/// projection expression to evaluate on client on results from server to materialize type
private readonly LambdaExpression lambda;
/// projection paths to send to the server
private readonly List paths;
#endregion Private fields.
///
/// Creates a ProjectionQueryOption expression
///
/// the return type of the expression
/// projection expression
/// Projection paths for the query option
internal ProjectionQueryOptionExpression(Type type, LambdaExpression lambda, List paths)
: base((ExpressionType)ResourceExpressionType.ProjectionQueryOption, type)
{
Debug.Assert(type != null, "type != null");
Debug.Assert(lambda != null, "lambda != null");
Debug.Assert(paths != null, "paths != null");
this.lambda = lambda;
this.paths = paths;
}
#region Internal properties.
///
/// expression for the projection
///
internal LambdaExpression Selector
{
get
{
return this.lambda;
}
}
///
/// expression for the projection
///
internal List Paths
{
get
{
return this.paths;
}
}
#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
- AdjustableArrowCap.cs
- Collection.cs
- assemblycache.cs
- ZoneLinkButton.cs
- DataGridCellsPanel.cs
- ToolStripGripRenderEventArgs.cs
- BitmapPalettes.cs
- FlowNode.cs
- PointConverter.cs
- DataExpression.cs
- LoginCancelEventArgs.cs
- DataSourceXmlSerializationAttribute.cs
- ActivationWorker.cs
- InputReportEventArgs.cs
- ServiceSecurityAuditBehavior.cs
- WmlFormAdapter.cs
- ProgressBar.cs
- ToolStripItemCollection.cs
- Assembly.cs
- SelectionItemProviderWrapper.cs
- XPathNodeIterator.cs
- DataExpression.cs
- Color.cs
- TypeUtil.cs
- EntityConnectionStringBuilder.cs
- SerializationException.cs
- QuestionEventArgs.cs
- InteropAutomationProvider.cs
- DomainUpDown.cs
- Button.cs
- WorkflowTimerService.cs
- WebPartsPersonalization.cs
- PeerContact.cs
- WebColorConverter.cs
- MLangCodePageEncoding.cs
- hebrewshape.cs
- QilReplaceVisitor.cs
- SerializationFieldInfo.cs
- XmlSerializerFactory.cs
- ColumnCollection.cs
- Ray3DHitTestResult.cs
- Rotation3DKeyFrameCollection.cs
- SmtpNtlmAuthenticationModule.cs
- PageVisual.cs
- DataPager.cs
- Encoder.cs
- TargetFrameworkUtil.cs
- LogicalExpressionTypeConverter.cs
- ForAllOperator.cs
- InstanceHandleReference.cs
- ServiceProviders.cs
- TableCellAutomationPeer.cs
- Convert.cs
- DotExpr.cs
- HttpHandlerAction.cs
- HandlerFactoryCache.cs
- XmlImplementation.cs
- TextViewDesigner.cs
- Cursor.cs
- AddInServer.cs
- EntityViewContainer.cs
- RtfFormatStack.cs
- ListMarkerSourceInfo.cs
- InputDevice.cs
- DataGridViewRowConverter.cs
- ErrorWebPart.cs
- ByteStorage.cs
- HandlerMappingMemo.cs
- SqlGatherConsumedAliases.cs
- DataGridViewCellCancelEventArgs.cs
- JournalEntryListConverter.cs
- AdRotator.cs
- Switch.cs
- GPPOINT.cs
- BrowserCapabilitiesCompiler.cs
- ImageDrawing.cs
- COM2IDispatchConverter.cs
- HttpCacheParams.cs
- ImageDrawing.cs
- MailAddressCollection.cs
- BehaviorService.cs
- SessionSwitchEventArgs.cs
- TextCompositionEventArgs.cs
- PathFigureCollectionValueSerializer.cs
- HeaderFilter.cs
- TextInfo.cs
- SafeHGlobalHandleCritical.cs
- CounterNameConverter.cs
- InteropBitmapSource.cs
- DetailsViewRow.cs
- InputManager.cs
- XmlILStorageConverter.cs
- ClientRuntimeConfig.cs
- StreamGeometry.cs
- MaterialCollection.cs
- SiteMapSection.cs
- HttpRequestCacheValidator.cs
- RandomNumberGenerator.cs
- UserPreferenceChangingEventArgs.cs
- XPathDocumentIterator.cs