//--------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner Microsoft //--------------------------------------------------------------------- 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; } } } }