NavigationExpr.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / NavigationExpr.cs / 1305376 / NavigationExpr.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyproperty (c) Microsoft Corporation.  All propertys reserved.
// 
// 
// @owner  [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 

namespace System.Data.Common.EntitySql.AST 
{
    using System;
    using System.Globalization;
    using System.Collections; 
    using System.Collections.Generic;
 
    ///  
    /// Represents a relationship navigation operator NAVIGATE(e,Relation-Type-Name[,ToEndName[,FromEndName]]).
    ///  
    internal sealed class RelshipNavigationExpr : Node
    {
        private readonly Node _fromEntity;
        private readonly Node _relshipTypeName; 
        private readonly Identifier _toEndIdentifier;
        private readonly Identifier _fromEndIdentifier; 
 
        /// 
        /// Initializes relationship navigation expression. 
        /// 
        internal RelshipNavigationExpr(Node fromEntity, Node relshipTypeName)
        {
            _fromEntity = fromEntity; 
            _relshipTypeName = relshipTypeName;
        } 
 
        /// 
        /// Initializes relationship navigation expression. 
        /// 
        internal RelshipNavigationExpr(Node fromEntity, Node relshipTypeName, Identifier toEndIdentifier)
            : this(fromEntity, relshipTypeName)
        { 
            _toEndIdentifier = toEndIdentifier;
        } 
 
        /// 
        /// Initializes relationship navigation expression. 
        /// 
        internal RelshipNavigationExpr(Node fromEntity, Node relshipTypeName, Identifier toEndIdentifier, Identifier fromEndIdentifier)
            : this(fromEntity, relshipTypeName, toEndIdentifier)
        { 
            _fromEndIdentifier = fromEndIdentifier;
        } 
 
        /// 
        /// FROM entity. 
        /// 
        internal Node Source
        {
            get { return _fromEntity; } 
        }
 
        ///  
        /// Relship type name.
        ///  
        internal Node TypeName
        {
            get { return _relshipTypeName; }
        } 

        ///  
        /// TO end identifier. 
        /// 
        internal Identifier ToEndIdentifier 
        {
            get { return _toEndIdentifier; }
        }
 
        /// 
        /// FROM end identifier. 
        ///  
        internal Identifier FromEndIdentifier
        { 
            get { return _fromEndIdentifier; }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK