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
- OrthographicCamera.cs
- SocketStream.cs
- DragCompletedEventArgs.cs
- MouseCaptureWithinProperty.cs
- Inflater.cs
- ModelPropertyDescriptor.cs
- EvidenceBase.cs
- BaseTreeIterator.cs
- OletxCommittableTransaction.cs
- ConnectionPoolManager.cs
- CallbackTimeoutsElement.cs
- NotifyParentPropertyAttribute.cs
- Expression.DebuggerProxy.cs
- UnmanagedMemoryAccessor.cs
- OrderByQueryOptionExpression.cs
- ThreadAttributes.cs
- WebPartConnectionsCancelEventArgs.cs
- WsdlBuildProvider.cs
- PrimitiveType.cs
- PageThemeCodeDomTreeGenerator.cs
- XhtmlConformanceSection.cs
- DeferredSelectedIndexReference.cs
- ToolboxDataAttribute.cs
- ViewValidator.cs
- InputDevice.cs
- AuthenticateEventArgs.cs
- WebServiceFault.cs
- UpdateInfo.cs
- SQLConvert.cs
- BitmapSource.cs
- CssTextWriter.cs
- ServiceReference.cs
- _AutoWebProxyScriptEngine.cs
- ScrollProviderWrapper.cs
- TreeViewItemAutomationPeer.cs
- PaintValueEventArgs.cs
- CopyOnWriteList.cs
- IsolationInterop.cs
- AutoCompleteStringCollection.cs
- Ref.cs
- ObjectStorage.cs
- ResolveNextArgumentWorkItem.cs
- ProgramPublisher.cs
- Attachment.cs
- DesignerPerfEventProvider.cs
- RawMouseInputReport.cs
- DocumentPageTextView.cs
- WorkingDirectoryEditor.cs
- AdornerDecorator.cs
- TreeViewAutomationPeer.cs
- AuthenticateEventArgs.cs
- ChtmlTextBoxAdapter.cs
- InstanceValue.cs
- SortExpressionBuilder.cs
- CallSite.cs
- Win32PrintDialog.cs
- AttachedAnnotationChangedEventArgs.cs
- SecurityUtils.cs
- ClientRoleProvider.cs
- Converter.cs
- TagMapCollection.cs
- WaitingCursor.cs
- URL.cs
- MetaModel.cs
- RowsCopiedEventArgs.cs
- SynchronizingStream.cs
- MobileUserControlDesigner.cs
- SaveFileDialog.cs
- InputScope.cs
- Timer.cs
- ExternalException.cs
- TypeInitializationException.cs
- MetadataArtifactLoaderResource.cs
- Int64Animation.cs
- PointHitTestParameters.cs
- TraceRecords.cs
- IxmlLineInfo.cs
- Missing.cs
- LinkConverter.cs
- EngineSiteSapi.cs
- BufferModeSettings.cs
- DataSourceHelper.cs
- MediaPlayer.cs
- Help.cs
- BuildProviderCollection.cs
- TabItemAutomationPeer.cs
- SpecularMaterial.cs
- GeometryGroup.cs
- basecomparevalidator.cs
- StyleModeStack.cs
- GeneralTransform.cs
- SqlGatherConsumedAliases.cs
- SerializationInfoEnumerator.cs
- DrawingBrush.cs
- FormsAuthenticationModule.cs
- HiddenFieldPageStatePersister.cs
- DataServiceConfiguration.cs
- storepermission.cs
- SchemaComplexType.cs
- PathStreamGeometryContext.cs