Code:
/ 4.0 / 4.0 / 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.
//----------------------------------------------------------------------
//
// 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
- FlowDocumentReaderAutomationPeer.cs
- DocumentEventArgs.cs
- SiteMapPath.cs
- DataRowChangeEvent.cs
- ParserExtension.cs
- XmlAttributes.cs
- RtfControls.cs
- CompilerState.cs
- MultipartIdentifier.cs
- SessionStateContainer.cs
- CallbackValidator.cs
- XmlAttributeOverrides.cs
- ControlPropertyNameConverter.cs
- ObjectStateManager.cs
- RegexReplacement.cs
- List.cs
- DesignerOptionService.cs
- StatusBarItemAutomationPeer.cs
- ViewStateModeByIdAttribute.cs
- StringFormat.cs
- errorpatternmatcher.cs
- SelectionItemProviderWrapper.cs
- AuthenticationConfig.cs
- PreProcessor.cs
- HebrewNumber.cs
- ClientFormsIdentity.cs
- DataGridViewRowsRemovedEventArgs.cs
- GroupDescription.cs
- PropertyMappingExceptionEventArgs.cs
- RepeatInfo.cs
- LinkButton.cs
- CheckBoxList.cs
- ContainerAction.cs
- AutomationPropertyInfo.cs
- MarshalByRefObject.cs
- PropertyInfo.cs
- SyndicationContent.cs
- DataGridViewCellLinkedList.cs
- MasterPageBuildProvider.cs
- TimestampInformation.cs
- BasicExpandProvider.cs
- TextTreeRootNode.cs
- InstancePersistence.cs
- FileEnumerator.cs
- XPathNode.cs
- QueryConverter.cs
- PathNode.cs
- ChangeBlockUndoRecord.cs
- ToolStripInSituService.cs
- InputScopeManager.cs
- ManagementOptions.cs
- InputLanguageManager.cs
- MetafileHeader.cs
- ToolTipService.cs
- ExecutionContext.cs
- XmlElementElement.cs
- DiagnosticsConfigurationHandler.cs
- CustomSignedXml.cs
- ProfilePropertySettings.cs
- MediaEntryAttribute.cs
- QilFunction.cs
- ToolStripContentPanelRenderEventArgs.cs
- TypedTableHandler.cs
- OdbcTransaction.cs
- ControlOperationBehavior.cs
- SqlBulkCopyColumnMapping.cs
- DescriptionAttribute.cs
- DbCommandDefinition.cs
- EditorPartChrome.cs
- BaseDataBoundControl.cs
- PriorityBindingExpression.cs
- StorageInfo.cs
- SoapAttributeAttribute.cs
- HWStack.cs
- Vector3DCollectionConverter.cs
- QueryExecutionOption.cs
- CategoryValueConverter.cs
- CustomWebEventKey.cs
- ImageMetadata.cs
- CAGDesigner.cs
- _WinHttpWebProxyDataBuilder.cs
- SafeFileHandle.cs
- FunctionQuery.cs
- _IPv4Address.cs
- SerializationEventsCache.cs
- DetailsViewRowCollection.cs
- ActivityExecutionContextCollection.cs
- TypeLoadException.cs
- AtomMaterializer.cs
- MasterPageBuildProvider.cs
- RepeaterCommandEventArgs.cs
- SubtreeProcessor.cs
- XmlRawWriter.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- DoubleAnimationClockResource.cs
- TextSelection.cs
- ContainerAction.cs
- TreeNodeBinding.cs
- EntityParameter.cs
- CallbackTimeoutsElement.cs