DbFunctionAttribute DbFunctionAttribute DbFunctionAttribute Class

Definition

Indicates that the given method is a proxy for an EDM function.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
public class DbFunctionAttribute : Attribute
type DbFunctionAttribute = class
    inherit Attribute
Public Class DbFunctionAttribute
Inherits Attribute
Inheritance
DbFunctionAttributeDbFunctionAttributeDbFunctionAttribute
Derived
Attributes

Remarks

Note that this class was called EdmFunctionAttribute in some previous versions of Entity Framework.

Constructors

DbFunctionAttribute(String, String) DbFunctionAttribute(String, String) DbFunctionAttribute(String, String)

Initializes a new instance of the DbFunctionAttribute class.

Properties

FunctionName FunctionName FunctionName

The name of the mapped-to function.

NamespaceName NamespaceName NamespaceName

The namespace of the mapped-to function.

Applies to