Share via


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
DbFunctionAttribute
Derived
Attributes

Remarks

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

Constructors

DbFunctionAttribute(String, String)

Initializes a new instance of the DbFunctionAttribute class.

Properties

FunctionName

The name of the mapped-to function.

NamespaceName

The namespace of the mapped-to function.

Applies to