Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ProjectionPathSegment.cs / 1305376 / ProjectionPathSegment.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a class that represents a single step in a path of segments // over a parsed tree used during projection-driven materialization. // //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System; using System.Diagnostics; using System.Linq.Expressions; #endregion Namespaces. ////// Use this class to represent a step in a path of segments /// over a parsed tree used during projection-driven materialization. /// [DebuggerDisplay("Segment {ProjectionType} {Member}")] internal class ProjectionPathSegment { #region Constructors. ///Initializes a new /// Path on which this segment is located. /// Name of member to access when traversing a property; possibly null. /// /// Type that we expect to project out; typically the same asinstance. , but may be adjusted. /// internal ProjectionPathSegment(ProjectionPath startPath, string member, Type projectionType) { Debug.Assert(startPath != null, "startPath != null"); this.Member = member; this.StartPath = startPath; this.ProjectionType = projectionType; } #endregion Constructors. #region Internal properties. /// Name of member to access when traversing a property; possibly null. internal string Member { get; private set; } ////// Type that we expect to project out; typically the same as ///, but may be adjusted. /// /// In particular, this type will be adjusted for nested narrowing entity types. /// /// For example: /// from c in ctx.Customers select new NarrowCustomer() { /// ID = c.ID, /// BestFriend = new NarrowCustomer() { ID = c.BestFriend.ID } /// } /// /// In this case, ID will match types on both sides, but BestFriend /// will be of type Customer in the member access of the source tree /// and we want to project out a member-initialized NarrowCustomer /// in the target tree. /// internal Type ProjectionType { get; set; } ///Path on which this segment is located. internal ProjectionPath StartPath { get; private set; } #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
- TextAdaptor.cs
- CodeTypeReferenceExpression.cs
- EntityTransaction.cs
- HttpListenerContext.cs
- SqlDependency.cs
- ReflectTypeDescriptionProvider.cs
- WindowsTitleBar.cs
- DataPagerCommandEventArgs.cs
- SmiSettersStream.cs
- XmlDataSourceNodeDescriptor.cs
- TableChangeProcessor.cs
- EntityDataSourceChangingEventArgs.cs
- ObjectQueryState.cs
- KeyToListMap.cs
- ImageSourceConverter.cs
- SchemaCollectionCompiler.cs
- DbXmlEnabledProviderManifest.cs
- ToggleProviderWrapper.cs
- JavaScriptObjectDeserializer.cs
- ScrollBarRenderer.cs
- ListGeneralPage.cs
- TriggerAction.cs
- HtmlTitle.cs
- PeerResolver.cs
- mongolianshape.cs
- AbsoluteQuery.cs
- SqlUserDefinedAggregateAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DataGridRowAutomationPeer.cs
- ComponentFactoryHelpers.cs
- SqlDataSource.cs
- SortedList.cs
- WeakReadOnlyCollection.cs
- ParallelTimeline.cs
- TagElement.cs
- PagerStyle.cs
- iisPickupDirectory.cs
- TraceEventCache.cs
- QueueProcessor.cs
- BooleanKeyFrameCollection.cs
- FeatureAttribute.cs
- Drawing.cs
- EntityDataSourceQueryBuilder.cs
- TextTrailingCharacterEllipsis.cs
- DrawingAttributeSerializer.cs
- CompiledWorkflowDefinitionContext.cs
- DesignerLoader.cs
- XhtmlBasicLabelAdapter.cs
- ReadOnlyDictionary.cs
- MessageEncodingBindingElement.cs
- UInt16Converter.cs
- DeclaredTypeElement.cs
- Lasso.cs
- Viewport2DVisual3D.cs
- NameHandler.cs
- Site.cs
- GlyphsSerializer.cs
- ZoneIdentityPermission.cs
- DeferredRunTextReference.cs
- UICuesEvent.cs
- WebBaseEventKeyComparer.cs
- ViewBase.cs
- TypeHelpers.cs
- DropSource.cs
- WinInet.cs
- DictionaryTraceRecord.cs
- ActivityStateRecord.cs
- XmlSchemaChoice.cs
- XNodeNavigator.cs
- DataObject.cs
- InternalSafeNativeMethods.cs
- MessagePropertyVariants.cs
- ValueUtilsSmi.cs
- DiscoveryEndpoint.cs
- RelatedEnd.cs
- DllNotFoundException.cs
- Compiler.cs
- DataViewManagerListItemTypeDescriptor.cs
- AuthorizationSection.cs
- TemplateFactory.cs
- PropertyIDSet.cs
- SafeSecurityHandles.cs
- Interlocked.cs
- QuadraticEase.cs
- dataobject.cs
- _UriTypeConverter.cs
- DbMetaDataFactory.cs
- PowerEase.cs
- FixedSOMPage.cs
- SqlUtils.cs
- CodeNamespaceImport.cs
- FrameSecurityDescriptor.cs
- __ConsoleStream.cs
- xdrvalidator.cs
- Geometry.cs
- TreeViewHitTestInfo.cs
- InvokeProviderWrapper.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- StateFinalizationDesigner.cs
- StatusBarPanel.cs