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
- ObjectDesignerDataSourceView.cs
- RemoteHelper.cs
- SqlRowUpdatingEvent.cs
- ListViewItemCollectionEditor.cs
- CustomValidator.cs
- RichTextBoxAutomationPeer.cs
- ListParagraph.cs
- Substitution.cs
- MiniParameterInfo.cs
- AuthenticateEventArgs.cs
- ToolStripButton.cs
- BuildManager.cs
- WebPartZoneBase.cs
- DataGridViewColumnConverter.cs
- EdmEntityTypeAttribute.cs
- ZoneButton.cs
- StoryFragments.cs
- PasswordBoxAutomationPeer.cs
- Selector.cs
- SinglePageViewer.cs
- OperationCanceledException.cs
- CompilerInfo.cs
- PerformanceCounterPermissionEntry.cs
- SqlTypeConverter.cs
- UIPermission.cs
- ComplexType.cs
- CodeSubDirectory.cs
- XPathNavigatorReader.cs
- X509Utils.cs
- FormViewInsertEventArgs.cs
- SatelliteContractVersionAttribute.cs
- ListControlConvertEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- BindingObserver.cs
- StylusShape.cs
- COM2ComponentEditor.cs
- TypeDelegator.cs
- MaskDescriptor.cs
- XamlFigureLengthSerializer.cs
- Blend.cs
- System.Data_BID.cs
- ExpressionVisitor.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- CodePageEncoding.cs
- XmlnsCompatibleWithAttribute.cs
- SimpleBitVector32.cs
- OpenFileDialog.cs
- CustomErrorsSection.cs
- PropertyGroupDescription.cs
- GridView.cs
- SqlDependency.cs
- ProtocolsConfigurationEntry.cs
- RemoteHelper.cs
- WFItemsToSpacerVisibility.cs
- ManagedFilter.cs
- TextDecorationCollection.cs
- ClrPerspective.cs
- ListBox.cs
- ReadOnlyDictionary.cs
- userdatakeys.cs
- InfoCardSymmetricAlgorithm.cs
- WorkflowServiceBuildProvider.cs
- XmlSerializerAssemblyAttribute.cs
- InvalidDataException.cs
- ThemeDictionaryExtension.cs
- DomainConstraint.cs
- xdrvalidator.cs
- SafeFileHandle.cs
- DesignerDataStoredProcedure.cs
- RunInstallerAttribute.cs
- SqlMultiplexer.cs
- SafeEventLogWriteHandle.cs
- Attributes.cs
- ContentElementAutomationPeer.cs
- UInt32Converter.cs
- PageSettings.cs
- StringFormat.cs
- ProfileModule.cs
- MethodBuilderInstantiation.cs
- FtpWebRequest.cs
- IconConverter.cs
- ConstNode.cs
- ItemChangedEventArgs.cs
- BufferAllocator.cs
- List.cs
- FragmentQueryKB.cs
- XamlGridLengthSerializer.cs
- CounterCreationData.cs
- MULTI_QI.cs
- OleAutBinder.cs
- SharedPerformanceCounter.cs
- BigIntegerStorage.cs
- Accessible.cs
- Odbc32.cs
- GetPageNumberCompletedEventArgs.cs
- TypeSemantics.cs
- UnconditionalPolicy.cs
- CodeSnippetCompileUnit.cs
- Slider.cs
- StandardRuntimeEnumValidatorAttribute.cs