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
- CodePropertyReferenceExpression.cs
- PackWebResponse.cs
- ImageCreator.cs
- IsolationInterop.cs
- TransactionScope.cs
- EventToken.cs
- ImageMap.cs
- ApplicationGesture.cs
- IndexedString.cs
- FlowDocumentView.cs
- CompletionBookmark.cs
- ClientRuntimeConfig.cs
- WindowsListViewItem.cs
- _StreamFramer.cs
- Util.cs
- ToolStripArrowRenderEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- RepeatInfo.cs
- MethodCallTranslator.cs
- MsmqProcessProtocolHandler.cs
- ResourcePermissionBase.cs
- ServiceMetadataContractBehavior.cs
- PictureBox.cs
- SettingsPropertyNotFoundException.cs
- MetadataLocation.cs
- ArrayList.cs
- TypeExtensionConverter.cs
- DmlSqlGenerator.cs
- SqlInfoMessageEvent.cs
- MsmqAppDomainProtocolHandler.cs
- SqlProcedureAttribute.cs
- ForeignConstraint.cs
- Token.cs
- AsyncResult.cs
- PropertyTabChangedEvent.cs
- StaticSiteMapProvider.cs
- StylusPlugin.cs
- XmlDataSourceView.cs
- WebBrowserSiteBase.cs
- AddingNewEventArgs.cs
- BinaryFormatter.cs
- ExpressionBindingCollection.cs
- XPathDocumentIterator.cs
- MobileCapabilities.cs
- FormatSettings.cs
- Inflater.cs
- RegexParser.cs
- ToolStripRendererSwitcher.cs
- UnhandledExceptionEventArgs.cs
- CompilerLocalReference.cs
- FlowLayout.cs
- TargetPerspective.cs
- WebPartMovingEventArgs.cs
- SafeNativeMethods.cs
- XmlNullResolver.cs
- XomlCompilerParameters.cs
- Char.cs
- HtmlFormWrapper.cs
- XmlSchemaSubstitutionGroup.cs
- DataGridCellClipboardEventArgs.cs
- SecurityIdentifierConverter.cs
- HttpConfigurationContext.cs
- EnvironmentPermission.cs
- AsmxEndpointPickerExtension.cs
- FamilyCollection.cs
- WebConfigurationFileMap.cs
- MonikerUtility.cs
- RemotingHelper.cs
- EmptyEnumerator.cs
- ExclusiveCanonicalizationTransform.cs
- TextTreeRootNode.cs
- BinaryUtilClasses.cs
- DependencySource.cs
- ControlBuilder.cs
- WsdlBuildProvider.cs
- FileDialogCustomPlace.cs
- OleDbDataReader.cs
- TextUtf8RawTextWriter.cs
- VerificationAttribute.cs
- SystemSounds.cs
- CatchDesigner.xaml.cs
- PKCS1MaskGenerationMethod.cs
- CodeThrowExceptionStatement.cs
- BaseServiceProvider.cs
- Identifier.cs
- UpdateProgress.cs
- ConnectionManagementElement.cs
- XmlArrayItemAttributes.cs
- ProcessModuleDesigner.cs
- Expression.cs
- ObjectStateEntry.cs
- VariableModifiersHelper.cs
- QilPatternFactory.cs
- DesignerOptions.cs
- AssemblySettingAttributes.cs
- dataSvcMapFileLoader.cs
- GlyphsSerializer.cs
- X509Chain.cs
- base64Transforms.cs
- PeerTransportSecurityElement.cs