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
- TableCellCollection.cs
- AssemblyBuilderData.cs
- WindowsRegion.cs
- QueryableFilterUserControl.cs
- MetaColumn.cs
- ResXResourceSet.cs
- lengthconverter.cs
- GacUtil.cs
- DocumentSchemaValidator.cs
- LicenseException.cs
- SmtpLoginAuthenticationModule.cs
- GridEntryCollection.cs
- TextDecorationCollection.cs
- Brush.cs
- SqlMetaData.cs
- GridViewRowEventArgs.cs
- GeometryGroup.cs
- ResourcePool.cs
- CreateInstanceBinder.cs
- sqlinternaltransaction.cs
- CryptoStream.cs
- DbUpdateCommandTree.cs
- HttpHostedTransportConfiguration.cs
- SourceItem.cs
- MetadataProperty.cs
- ClientType.cs
- Visual3D.cs
- DataServiceHostFactory.cs
- XmlArrayAttribute.cs
- EventHandlerList.cs
- SqlDataSourceCommandEventArgs.cs
- FontCacheLogic.cs
- TogglePattern.cs
- GlobalizationSection.cs
- AttributeEmitter.cs
- CircleHotSpot.cs
- NotFiniteNumberException.cs
- PipeStream.cs
- WSTransactionSection.cs
- Boolean.cs
- UTF7Encoding.cs
- TraceListener.cs
- SafeMILHandle.cs
- WindowsSecurityTokenAuthenticator.cs
- HtmlInputRadioButton.cs
- SqlReferenceCollection.cs
- ResourceDictionary.cs
- TrustDriver.cs
- ContentOperations.cs
- Accessors.cs
- WindowsRebar.cs
- SspiWrapper.cs
- SQLDouble.cs
- GroupJoinQueryOperator.cs
- SoapFault.cs
- XpsFilter.cs
- LinqDataSourceView.cs
- CssStyleCollection.cs
- KeyManager.cs
- RuleRef.cs
- controlskin.cs
- StandardToolWindows.cs
- DictionaryBase.cs
- HwndAppCommandInputProvider.cs
- ThreadStartException.cs
- FullTextLine.cs
- EnumMemberAttribute.cs
- FlowPosition.cs
- TimeSpanOrInfiniteConverter.cs
- _PooledStream.cs
- XXXOnTypeBuilderInstantiation.cs
- SqlClientWrapperSmiStreamChars.cs
- PropertyTabChangedEvent.cs
- InternalsVisibleToAttribute.cs
- DefaultShape.cs
- URIFormatException.cs
- AuthenticatedStream.cs
- ConnectionsZone.cs
- AnnotationResource.cs
- SqlProviderUtilities.cs
- XmlElementAttributes.cs
- CssClassPropertyAttribute.cs
- WindowsStatusBar.cs
- DataGridViewCellCancelEventArgs.cs
- RegisteredDisposeScript.cs
- ButtonFieldBase.cs
- CodeSpit.cs
- rsa.cs
- Profiler.cs
- CodeTypeParameter.cs
- IgnorePropertiesAttribute.cs
- CircleHotSpot.cs
- TabPage.cs
- Int16Storage.cs
- CategoryAttribute.cs
- TableParaClient.cs
- CallbackDebugElement.cs
- Parameter.cs
- ToolStripContentPanel.cs
- RequestCachePolicy.cs