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
- DynamicResourceExtension.cs
- SystemPens.cs
- XmlEncoding.cs
- XmlSchemaComplexType.cs
- NumericPagerField.cs
- CollectionViewProxy.cs
- DataKeyArray.cs
- InvalidProgramException.cs
- ISO2022Encoding.cs
- ZipPackagePart.cs
- Subtract.cs
- UpdateRecord.cs
- DataGridColumnHeaderCollection.cs
- ElementHostAutomationPeer.cs
- EndpointBehaviorElement.cs
- XmlDataCollection.cs
- HtmlInputSubmit.cs
- SortedSet.cs
- ComContractElementCollection.cs
- dbdatarecord.cs
- NativeWindow.cs
- Deserializer.cs
- ZipFileInfo.cs
- EventDriven.cs
- PageSetupDialog.cs
- RenderData.cs
- StyleBamlTreeBuilder.cs
- PointCollectionValueSerializer.cs
- ToggleButton.cs
- DispatchWrapper.cs
- RadialGradientBrush.cs
- PageSetupDialog.cs
- FlowDocumentScrollViewer.cs
- TraceFilter.cs
- DynamicFilterExpression.cs
- InputManager.cs
- TextBox.cs
- ThemeDictionaryExtension.cs
- ToolStripLocationCancelEventArgs.cs
- Size.cs
- LockedActivityGlyph.cs
- Module.cs
- ListItemViewAttribute.cs
- ValidationResult.cs
- SpnEndpointIdentity.cs
- RegexCharClass.cs
- ProfileManager.cs
- HandlerFactoryWrapper.cs
- Avt.cs
- XmlCompatibilityReader.cs
- AssertHelper.cs
- GuidelineSet.cs
- XmlUtf8RawTextWriter.cs
- DbDeleteCommandTree.cs
- BufferedStream.cs
- Point3DValueSerializer.cs
- MarshalByRefObject.cs
- DSASignatureFormatter.cs
- WebRequestModulesSection.cs
- HostingPreferredMapPath.cs
- IISUnsafeMethods.cs
- SQLChars.cs
- SizeConverter.cs
- ItemsPanelTemplate.cs
- CharEntityEncoderFallback.cs
- ArrayMergeHelper.cs
- PolicyStatement.cs
- Transform3DGroup.cs
- CustomErrorCollection.cs
- MultiBinding.cs
- DataControlButton.cs
- CodeArgumentReferenceExpression.cs
- ResourceAttributes.cs
- GridView.cs
- Brush.cs
- OracleParameter.cs
- EventLogQuery.cs
- X509Chain.cs
- TypedServiceChannelBuilder.cs
- GCHandleCookieTable.cs
- JsonXmlDataContract.cs
- Mutex.cs
- EditorPartCollection.cs
- WebPartConnectionCollection.cs
- VectorAnimationUsingKeyFrames.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ApplicationServiceHelper.cs
- CancelEventArgs.cs
- ScriptResourceAttribute.cs
- sqlmetadatafactory.cs
- DataSourceXmlAttributeAttribute.cs
- StatusBarPanel.cs
- CopyAction.cs
- Encoder.cs
- RenderDataDrawingContext.cs
- WebProxyScriptElement.cs
- DelegateHelpers.Generated.cs
- MatrixAnimationUsingPath.cs
- AttachmentCollection.cs
- DefaultSerializationProviderAttribute.cs