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
- OracleEncoding.cs
- ConnectionInterfaceCollection.cs
- ProjectionPruner.cs
- querybuilder.cs
- sapiproxy.cs
- RelOps.cs
- EventDescriptor.cs
- ActiveDocumentEvent.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- XmlChoiceIdentifierAttribute.cs
- ViewgenContext.cs
- HitTestParameters.cs
- MouseEvent.cs
- SqlNodeAnnotations.cs
- CompositeControlDesigner.cs
- unsafenativemethodsother.cs
- AbandonedMutexException.cs
- nulltextcontainer.cs
- UTF8Encoding.cs
- DockEditor.cs
- ICspAsymmetricAlgorithm.cs
- WebSysDefaultValueAttribute.cs
- EntryPointNotFoundException.cs
- DomNameTable.cs
- PathFigure.cs
- FontCollection.cs
- DataControlFieldCell.cs
- VSDExceptions.cs
- XPathNodePointer.cs
- ParameterToken.cs
- SplitterCancelEvent.cs
- TiffBitmapEncoder.cs
- TdsParserSessionPool.cs
- DataRowExtensions.cs
- XmlSchemaException.cs
- __Filters.cs
- OledbConnectionStringbuilder.cs
- ClientSideQueueItem.cs
- ToolStripDropTargetManager.cs
- Exceptions.cs
- wmiprovider.cs
- X509ImageLogo.cs
- SByteStorage.cs
- MouseButtonEventArgs.cs
- HtmlToClrEventProxy.cs
- ImpersonateTokenRef.cs
- TextBox.cs
- BasicHttpBindingElement.cs
- ProtocolElement.cs
- PersonalizationStateQuery.cs
- ServiceMetadataPublishingElement.cs
- Timer.cs
- XmlMapping.cs
- TextElement.cs
- ValidatorCollection.cs
- OracleParameterBinding.cs
- ApplyImportsAction.cs
- SetterBaseCollection.cs
- PointCollection.cs
- HttpHandlerActionCollection.cs
- PeerNameRecord.cs
- SplineQuaternionKeyFrame.cs
- AmbientLight.cs
- XmlSerializationWriter.cs
- GrammarBuilderRuleRef.cs
- HttpModuleActionCollection.cs
- ColorMatrix.cs
- AudioFormatConverter.cs
- HtmlShim.cs
- _UncName.cs
- WriteableBitmap.cs
- GridPattern.cs
- UnsafeNativeMethods.cs
- TypeViewSchema.cs
- TextTreeExtractElementUndoUnit.cs
- CompatibleComparer.cs
- XmlDictionaryReaderQuotas.cs
- ConditionCollection.cs
- BigInt.cs
- PrintDialogException.cs
- Component.cs
- HashMembershipCondition.cs
- BindStream.cs
- ConfigurationLocationCollection.cs
- SimpleLine.cs
- SmtpReplyReaderFactory.cs
- ToolStripPanelCell.cs
- ReferentialConstraint.cs
- ActivityCollectionMarkupSerializer.cs
- ToolStripMenuItem.cs
- WebPartRestoreVerb.cs
- ReadOnlyAttribute.cs
- FontFamilyConverter.cs
- ScriptControlManager.cs
- FontNamesConverter.cs
- SignatureHelper.cs
- LocalizedNameDescriptionPair.cs
- ParsedAttributeCollection.cs
- AsyncCompletedEventArgs.cs
- SafeCryptoHandles.cs