EdmRelationshipNavigationPropertyAttribute.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmRelationshipNavigationPropertyAttribute.cs / 2 / EdmRelationshipNavigationPropertyAttribute.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner       [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 
using System;
 
namespace System.Data.Objects.DataClasses
{
    /// 
    /// Attribute identifying the Ends defined for a RelationshipSet 
    /// Implied default AttributeUsage properties Inherited=True, AllowMultiple=False,
    /// The metadata system expects this and will only look at the first of each of these attributes, even if there are more. 
    ///  
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
    [AttributeUsage(AttributeTargets.Property)] 
    public sealed class EdmRelationshipNavigationPropertyAttribute : EdmPropertyAttribute
    {
        private string _relationshipNamespaceName;
        private string _relationshipName; 
        private string _targetRoleName;
 
        ///  
        /// Attribute identifying the Ends defined for a RelationshipSet
        ///  
        public EdmRelationshipNavigationPropertyAttribute(string relationshipNamespaceName, string relationshipName, string targetRoleName)
        {
            _relationshipNamespaceName = relationshipNamespaceName;
            _relationshipName = relationshipName; 
            _targetRoleName = targetRoleName;
        } 
 
        /// 
        /// the namespace name of the relationship 
        /// 
        public string RelationshipNamespaceName
        {
            get { return _relationshipNamespaceName; } 
        }
 
        ///  
        /// the relationship name
        ///  
        public string RelationshipName
        {
            get { return _relationshipName; }
        } 

        ///  
        /// the target role name 
        /// 
        public string TargetRoleName 
        {
            get { return _targetRoleName; }
        }
 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner       [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 
using System;
 
namespace System.Data.Objects.DataClasses
{
    /// 
    /// Attribute identifying the Ends defined for a RelationshipSet 
    /// Implied default AttributeUsage properties Inherited=True, AllowMultiple=False,
    /// The metadata system expects this and will only look at the first of each of these attributes, even if there are more. 
    ///  
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
    [AttributeUsage(AttributeTargets.Property)] 
    public sealed class EdmRelationshipNavigationPropertyAttribute : EdmPropertyAttribute
    {
        private string _relationshipNamespaceName;
        private string _relationshipName; 
        private string _targetRoleName;
 
        ///  
        /// Attribute identifying the Ends defined for a RelationshipSet
        ///  
        public EdmRelationshipNavigationPropertyAttribute(string relationshipNamespaceName, string relationshipName, string targetRoleName)
        {
            _relationshipNamespaceName = relationshipNamespaceName;
            _relationshipName = relationshipName; 
            _targetRoleName = targetRoleName;
        } 
 
        /// 
        /// the namespace name of the relationship 
        /// 
        public string RelationshipNamespaceName
        {
            get { return _relationshipNamespaceName; } 
        }
 
        ///  
        /// the relationship name
        ///  
        public string RelationshipName
        {
            get { return _relationshipName; }
        } 

        ///  
        /// the target role name 
        /// 
        public string TargetRoleName 
        {
            get { return _targetRoleName; }
        }
 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

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