EdmFunctionAttribute.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmFunctionAttribute.cs / 1305376 / EdmFunctionAttribute.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner       [....]
//--------------------------------------------------------------------- 
 
namespace System.Data.Objects.DataClasses
{ 
    /// 
    /// Indicates that the given method is a proxy for an EDM function.
    /// 
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)] 
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
    public sealed class EdmFunctionAttribute : Attribute 
    { 
        private readonly string _namespaceName;
        private readonly string _functionName; 

        /// 
        /// Creates a new EdmFunctionAttribute instance.
        ///  
        /// The namespace name of the EDM function represented by the attributed method
        /// The function name of the EDM function represented by the attributed method 
        public EdmFunctionAttribute(string namespaceName, string functionName) 
        {
            _namespaceName = namespaceName; 
            _functionName = functionName;
        }

        ///  
        /// The namespace name of the EDM function represented by the attributed method
        ///  
        public string NamespaceName { get { return _namespaceName; } } 

        ///  
        /// The function name of the EDM function represented by the attributed method
        /// 
        public string FunctionName { get { return _functionName; } }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner       [....]
//--------------------------------------------------------------------- 
 
namespace System.Data.Objects.DataClasses
{ 
    /// 
    /// Indicates that the given method is a proxy for an EDM function.
    /// 
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)] 
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
    public sealed class EdmFunctionAttribute : Attribute 
    { 
        private readonly string _namespaceName;
        private readonly string _functionName; 

        /// 
        /// Creates a new EdmFunctionAttribute instance.
        ///  
        /// The namespace name of the EDM function represented by the attributed method
        /// The function name of the EDM function represented by the attributed method 
        public EdmFunctionAttribute(string namespaceName, string functionName) 
        {
            _namespaceName = namespaceName; 
            _functionName = functionName;
        }

        ///  
        /// The namespace name of the EDM function represented by the attributed method
        ///  
        public string NamespaceName { get { return _namespaceName; } } 

        ///  
        /// The function name of the EDM function represented by the attributed method
        /// 
        public string FunctionName { get { return _functionName; } }
    } 
}

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