NavigationExpr.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / NavigationExpr.cs / 1 / NavigationExpr.cs

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

 
namespace System.Data.Common.EntitySql
{
    using System;
    using System.Globalization; 
    using System.Collections;
    using System.Collections.Generic; 
 
    /// 
    /// represents a relationship navigation operator represented by NAVIGATE(e,Relation-Type-Name[,ToEndName[,FromEndName]]) 
    /// 
    internal sealed class RelshipNavigationExpr : Expr
    {
        private Expr _fromEntity; 
        private DottedIdentifier _relationTypeName;
        private Identifier _toEndIdentifier; 
        private Identifier _fromEndIdentifier; 

        ///  
        /// initializes relationship navigation expression
        /// 
        /// 
        ///  
        internal RelshipNavigationExpr( Expr fromEntity, DotExpr relationTypeName )
        { 
            _fromEntity = fromEntity; 

            if (relationTypeName.IsDottedIdentifier) 
            {
                _relationTypeName = new DottedIdentifier(relationTypeName);
            }
            else 
            {
                throw EntityUtil.EntitySqlError(relationTypeName.ErrCtx, System.Data.Entity.Strings.InvalidRelationTypeName); 
            } 
        }
 
        /// 
        /// initializes relationship navigation expression
        /// 
        ///  
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, Identifier relationTypeName ) 
        { 
            _fromEntity = fromEntity;
            _relationTypeName = new DottedIdentifier(relationTypeName); 
        }

        /// 
        /// initializes relationship navigation expression 
        /// 
        ///  
        ///  
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, DotExpr relationTypeName, Identifier toEndIdentifier ) 
            : this(fromEntity, relationTypeName)
        {
            _toEndIdentifier = toEndIdentifier;
        } 

        ///  
        /// initializes relationship navigation expression 
        /// 
        ///  
        /// 
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, Identifier relationTypeName, Identifier toEndIdentifier )
            : this(fromEntity, relationTypeName) 
        {
            _toEndIdentifier = toEndIdentifier; 
        } 

        ///  
        /// initializes relationship navigation expression
        /// 
        /// 
        ///  
        /// 
        ///  
        internal RelshipNavigationExpr( Expr fromEntity, DotExpr relationTypeName, Identifier toEndIdentifier, Identifier fromEndIdentifier ) 
            : this(fromEntity, relationTypeName, toEndIdentifier)
        { 
            _fromEndIdentifier = fromEndIdentifier;
        }

        ///  
        /// initializes relationship navigation expression
        ///  
        ///  
        /// 
        ///  
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, Identifier relationTypeName, Identifier toEndIdentifier, Identifier fromEndIdentifier )
            : this(fromEntity, relationTypeName, toEndIdentifier)
        { 
            _fromEndIdentifier = fromEndIdentifier;
        } 
 
        /// 
        /// returns from entity 
        /// 
        internal Expr RelationshipSource
        {
            get { return _fromEntity; } 
        }
 
        ///  
        /// relationship identifier
        ///  
        internal DottedIdentifier RelationTypeNameIdentifier
        {
            get { return _relationTypeName; }
        } 

        ///  
        /// relationship name 
        /// 
        internal string RelationTypeFullName 
        {
            get { return RelationTypeNameIdentifier.FullName; }
        }
 
        /// 
        /// returns name array 
        ///  
        internal string[] RelationTypeNames
        { 
            get { return RelationTypeNameIdentifier.Names; }
        }

        ///  
        /// To End Identifier
        ///  
        internal Identifier ToEndIdentifier 
        {
            get { return _toEndIdentifier; } 
        }

        /// 
        /// To End Identifier Name 
        /// 
        internal string ToEndIdentifierName 
        { 
            get { return (null == ToEndIdentifier) ? String.Empty : ToEndIdentifier.Name; }
        } 

        /// 
        /// From End Identifier
        ///  
        internal Identifier FromEndIdentifier
        { 
            get { return _fromEndIdentifier; } 
        }
 
        /// 
        /// From End Identifier Name
        /// 
        internal string FromEndIdentifierName 
        {
            get { return (null == FromEndIdentifier) ? String.Empty : FromEndIdentifier.Name; } 
        } 

    } 

}

 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------- 
// 
//      Copyproperty (c) Microsoft Corporation.  All propertys reserved.
// 
// 
// @owner  [....]
// @backup [....] 
//--------------------------------------------------------------------- 

 
namespace System.Data.Common.EntitySql
{
    using System;
    using System.Globalization; 
    using System.Collections;
    using System.Collections.Generic; 
 
    /// 
    /// represents a relationship navigation operator represented by NAVIGATE(e,Relation-Type-Name[,ToEndName[,FromEndName]]) 
    /// 
    internal sealed class RelshipNavigationExpr : Expr
    {
        private Expr _fromEntity; 
        private DottedIdentifier _relationTypeName;
        private Identifier _toEndIdentifier; 
        private Identifier _fromEndIdentifier; 

        ///  
        /// initializes relationship navigation expression
        /// 
        /// 
        ///  
        internal RelshipNavigationExpr( Expr fromEntity, DotExpr relationTypeName )
        { 
            _fromEntity = fromEntity; 

            if (relationTypeName.IsDottedIdentifier) 
            {
                _relationTypeName = new DottedIdentifier(relationTypeName);
            }
            else 
            {
                throw EntityUtil.EntitySqlError(relationTypeName.ErrCtx, System.Data.Entity.Strings.InvalidRelationTypeName); 
            } 
        }
 
        /// 
        /// initializes relationship navigation expression
        /// 
        ///  
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, Identifier relationTypeName ) 
        { 
            _fromEntity = fromEntity;
            _relationTypeName = new DottedIdentifier(relationTypeName); 
        }

        /// 
        /// initializes relationship navigation expression 
        /// 
        ///  
        ///  
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, DotExpr relationTypeName, Identifier toEndIdentifier ) 
            : this(fromEntity, relationTypeName)
        {
            _toEndIdentifier = toEndIdentifier;
        } 

        ///  
        /// initializes relationship navigation expression 
        /// 
        ///  
        /// 
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, Identifier relationTypeName, Identifier toEndIdentifier )
            : this(fromEntity, relationTypeName) 
        {
            _toEndIdentifier = toEndIdentifier; 
        } 

        ///  
        /// initializes relationship navigation expression
        /// 
        /// 
        ///  
        /// 
        ///  
        internal RelshipNavigationExpr( Expr fromEntity, DotExpr relationTypeName, Identifier toEndIdentifier, Identifier fromEndIdentifier ) 
            : this(fromEntity, relationTypeName, toEndIdentifier)
        { 
            _fromEndIdentifier = fromEndIdentifier;
        }

        ///  
        /// initializes relationship navigation expression
        ///  
        ///  
        /// 
        ///  
        /// 
        internal RelshipNavigationExpr( Expr fromEntity, Identifier relationTypeName, Identifier toEndIdentifier, Identifier fromEndIdentifier )
            : this(fromEntity, relationTypeName, toEndIdentifier)
        { 
            _fromEndIdentifier = fromEndIdentifier;
        } 
 
        /// 
        /// returns from entity 
        /// 
        internal Expr RelationshipSource
        {
            get { return _fromEntity; } 
        }
 
        ///  
        /// relationship identifier
        ///  
        internal DottedIdentifier RelationTypeNameIdentifier
        {
            get { return _relationTypeName; }
        } 

        ///  
        /// relationship name 
        /// 
        internal string RelationTypeFullName 
        {
            get { return RelationTypeNameIdentifier.FullName; }
        }
 
        /// 
        /// returns name array 
        ///  
        internal string[] RelationTypeNames
        { 
            get { return RelationTypeNameIdentifier.Names; }
        }

        ///  
        /// To End Identifier
        ///  
        internal Identifier ToEndIdentifier 
        {
            get { return _toEndIdentifier; } 
        }

        /// 
        /// To End Identifier Name 
        /// 
        internal string ToEndIdentifierName 
        { 
            get { return (null == ToEndIdentifier) ? String.Empty : ToEndIdentifier.Name; }
        } 

        /// 
        /// From End Identifier
        ///  
        internal Identifier FromEndIdentifier
        { 
            get { return _fromEndIdentifier; } 
        }
 
        /// 
        /// From End Identifier Name
        /// 
        internal string FromEndIdentifierName 
        {
            get { return (null == FromEndIdentifier) ? String.Empty : FromEndIdentifier.Name; } 
        } 

    } 

}

 

// 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