Share via


DbFunctionAttribute 类

定义

指示给定方法是 EDM 函数的代理。

[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
继承
DbFunctionAttribute
派生
属性

注解

请注意,此类在旧版实体框架中称为 EdmFunctionAttribute。

构造函数

DbFunctionAttribute(String, String)

初始化 DbFunctionAttribute 类的新实例。

属性

FunctionName

映射目标函数的名称。

NamespaceName

映射目标函数的命名空间。

适用于