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
- ContainsRowNumberChecker.cs
- WorkItem.cs
- _HeaderInfo.cs
- ParsedAttributeCollection.cs
- DateTimeStorage.cs
- XmlILModule.cs
- BindStream.cs
- StrongNameMembershipCondition.cs
- WebPartDisplayModeEventArgs.cs
- SimpleRecyclingCache.cs
- HtmlLink.cs
- _SpnDictionary.cs
- AuthenticationServiceManager.cs
- ScrollContentPresenter.cs
- SkipStoryboardToFill.cs
- PartialToken.cs
- XmlComplianceUtil.cs
- InteropAutomationProvider.cs
- BufferedWebEventProvider.cs
- CatalogPartCollection.cs
- Graph.cs
- RoleManagerEventArgs.cs
- SQLInt32Storage.cs
- ParamArrayAttribute.cs
- ListSortDescription.cs
- NameValueSectionHandler.cs
- CachedBitmap.cs
- DataServiceQueryProvider.cs
- EventProviderBase.cs
- LocalizationComments.cs
- EntityCommand.cs
- XmlBinaryWriterSession.cs
- InstanceKeyNotReadyException.cs
- RTTrackingProfile.cs
- TextPointerBase.cs
- HttpModulesSection.cs
- BuildProviderCollection.cs
- embossbitmapeffect.cs
- MD5CryptoServiceProvider.cs
- ActivitySurrogateSelector.cs
- FieldToken.cs
- ComboBox.cs
- ValuePatternIdentifiers.cs
- InternalResources.cs
- Point3DCollection.cs
- InheritanceRules.cs
- MimeFormatter.cs
- ByteStack.cs
- NotifyInputEventArgs.cs
- TraceLog.cs
- XdrBuilder.cs
- Int32KeyFrameCollection.cs
- OleDbCommandBuilder.cs
- FixedMaxHeap.cs
- HtmlSelectionListAdapter.cs
- InkSerializer.cs
- CompilerParameters.cs
- ErrorRuntimeConfig.cs
- TextDocumentView.cs
- Preprocessor.cs
- SQLInt16.cs
- DrawingGroup.cs
- DockPattern.cs
- SwitchCase.cs
- ImageAnimator.cs
- QilDataSource.cs
- CodeNamespace.cs
- SiteMapNodeItem.cs
- RangeValidator.cs
- SeparatorAutomationPeer.cs
- ToolStripMenuItemCodeDomSerializer.cs
- ListViewEditEventArgs.cs
- DefaultBindingPropertyAttribute.cs
- SuppressMergeCheckAttribute.cs
- ClockController.cs
- QueryReaderSettings.cs
- TypeForwardedToAttribute.cs
- Material.cs
- DiffuseMaterial.cs
- TextBox.cs
- ToolStripComboBox.cs
- StaticExtensionConverter.cs
- FontStretches.cs
- GridViewDeleteEventArgs.cs
- StoreItemCollection.cs
- BitConverter.cs
- SafeFileMappingHandle.cs
- OdbcCommandBuilder.cs
- PrinterUnitConvert.cs
- InputLangChangeEvent.cs
- BrowsableAttribute.cs
- StreamMarshaler.cs
- ControlIdConverter.cs
- ParameterEditorUserControl.cs
- OnOperation.cs
- ListenerConnectionDemuxer.cs
- XmlChildNodes.cs
- TabItemWrapperAutomationPeer.cs
- SafeRightsManagementPubHandle.cs
- VerificationAttribute.cs