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 Listpaths; #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, Listpaths) : 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 ListPaths { 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 Listpaths; #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, Listpaths) : 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 ListPaths { 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
- DataGridTemplateColumn.cs
- oledbmetadatacollectionnames.cs
- RuleSettings.cs
- XmlTypeAttribute.cs
- AppDomain.cs
- X509UI.cs
- XmlReader.cs
- userdatakeys.cs
- XmlCharType.cs
- QilLoop.cs
- QueryPageSettingsEventArgs.cs
- ImageListStreamer.cs
- BindingsCollection.cs
- ProviderSettingsCollection.cs
- UseManagedPresentationElement.cs
- SqlNodeAnnotations.cs
- XmlLinkedNode.cs
- XsdBuilder.cs
- SpecialNameAttribute.cs
- WorkBatch.cs
- VectorValueSerializer.cs
- SvcMapFileSerializer.cs
- Ipv6Element.cs
- DataGrid.cs
- FixedSOMPageElement.cs
- XmlDataSourceDesigner.cs
- OverlappedAsyncResult.cs
- CultureSpecificStringDictionary.cs
- ConnectionOrientedTransportChannelFactory.cs
- PageThemeParser.cs
- HtmlContainerControl.cs
- RequestCacheValidator.cs
- HwndSource.cs
- StorageRoot.cs
- CodeGen.cs
- WpfSharedBamlSchemaContext.cs
- Image.cs
- Membership.cs
- SmtpException.cs
- x509store.cs
- WindowsTreeView.cs
- shaperfactoryquerycacheentry.cs
- GeneralTransform3DGroup.cs
- AssemblyAssociatedContentFileAttribute.cs
- ProfileManager.cs
- PerformanceCounter.cs
- HashCodeCombiner.cs
- QueryPageSettingsEventArgs.cs
- AttachmentService.cs
- MessageFormatterConverter.cs
- StringSorter.cs
- XNameTypeConverter.cs
- XPSSignatureDefinition.cs
- AudioStateChangedEventArgs.cs
- PolyQuadraticBezierSegment.cs
- PointLight.cs
- X500Name.cs
- NamespaceQuery.cs
- DataGridViewButtonCell.cs
- OleDbRowUpdatedEvent.cs
- HttpTransportSecurity.cs
- DynamicAttribute.cs
- FlowDecisionDesigner.xaml.cs
- DataServiceBuildProvider.cs
- ApplicationFileParser.cs
- ProfileBuildProvider.cs
- precedingsibling.cs
- DataTablePropertyDescriptor.cs
- CodeNamespaceCollection.cs
- WebPartConnectionsConnectVerb.cs
- PerformanceCounterLib.cs
- ArrayTypeMismatchException.cs
- ReadWriteObjectLock.cs
- Pkcs7Signer.cs
- RoutedEventConverter.cs
- HtmlInputReset.cs
- NotifyInputEventArgs.cs
- SystemResourceKey.cs
- CodeDomSerializerBase.cs
- FacetDescription.cs
- CmsInterop.cs
- Menu.cs
- Run.cs
- ToggleProviderWrapper.cs
- JavaScriptObjectDeserializer.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- FacetEnabledSchemaElement.cs
- OleDbConnection.cs
- DetailsView.cs
- DefaultBindingPropertyAttribute.cs
- CodeObject.cs
- LocatorManager.cs
- XmlEntity.cs
- GridProviderWrapper.cs
- EntityClientCacheEntry.cs
- InvalidWMPVersionException.cs
- ReadWriteControlDesigner.cs
- TypeBinaryExpression.cs
- ServiceNameElement.cs
- HttpCookieCollection.cs