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
- Int64Converter.cs
- RegexNode.cs
- documentsequencetextcontainer.cs
- ServiceOperationParameter.cs
- SevenBitStream.cs
- DataPointer.cs
- ServiceHttpModule.cs
- RoutingSection.cs
- SqlRowUpdatedEvent.cs
- ChineseLunisolarCalendar.cs
- WS2007FederationHttpBindingCollectionElement.cs
- DecimalAnimationBase.cs
- ValidatedControlConverter.cs
- ThreadStartException.cs
- EntityReference.cs
- ResponseStream.cs
- ActiveXContainer.cs
- DataServiceRequestOfT.cs
- RelationshipSet.cs
- GridView.cs
- PowerStatus.cs
- EditorAttribute.cs
- DBCSCodePageEncoding.cs
- AsyncStreamReader.cs
- PolicyValidationException.cs
- XmlSchemaElement.cs
- OracleBFile.cs
- XmlSchemaAttributeGroupRef.cs
- UnmanagedBitmapWrapper.cs
- QueryOutputWriter.cs
- EntityCommandDefinition.cs
- FormClosingEvent.cs
- connectionpool.cs
- CriticalExceptions.cs
- EntityTemplateFactory.cs
- OdbcEnvironment.cs
- RunWorkerCompletedEventArgs.cs
- DataGridViewToolTip.cs
- RuntimeHelpers.cs
- BoundPropertyEntry.cs
- MetaTableHelper.cs
- TextRangeAdaptor.cs
- SQLSingleStorage.cs
- MethodRental.cs
- ParsedAttributeCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- _NegoStream.cs
- PreviewPrintController.cs
- UrlMappingsModule.cs
- NativeRightsManagementAPIsStructures.cs
- SymLanguageVendor.cs
- hresults.cs
- RepeaterCommandEventArgs.cs
- RoleManagerSection.cs
- AxHost.cs
- Brushes.cs
- GetWinFXPath.cs
- DesignerSerializationVisibilityAttribute.cs
- CompiledELinqQueryState.cs
- CalendarBlackoutDatesCollection.cs
- ExitEventArgs.cs
- DataObject.cs
- XsdBuilder.cs
- TranslateTransform.cs
- _KerberosClient.cs
- filewebrequest.cs
- WebResourceAttribute.cs
- RadioButtonStandardAdapter.cs
- RuntimeConfigurationRecord.cs
- EventSetter.cs
- SqlMethodCallConverter.cs
- SendMessageChannelCache.cs
- UnsupportedPolicyOptionsException.cs
- CodeDomSerializationProvider.cs
- DesignerActionUIService.cs
- SoapBinding.cs
- DocumentationServerProtocol.cs
- ElementsClipboardData.cs
- DecoderReplacementFallback.cs
- NumericPagerField.cs
- QuaternionConverter.cs
- SystemColorTracker.cs
- SqlCaseSimplifier.cs
- XamlSerializer.cs
- ILGenerator.cs
- ClickablePoint.cs
- DataException.cs
- Rfc2898DeriveBytes.cs
- StyleXamlParser.cs
- XmlNullResolver.cs
- LayoutSettings.cs
- Light.cs
- ContainerUtilities.cs
- TreeNodeBindingCollection.cs
- ControlTemplate.cs
- LinqDataSourceStatusEventArgs.cs
- HtmlInputPassword.cs
- DesignerActionPropertyItem.cs
- RegexMatch.cs
- ConfigsHelper.cs