語言

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
衍生
屬性

備註

請注意,這個類別在某些早期版本的 Entity Framework 中被稱為 EdmFunctionAttribute。

建構函式

名稱 Description
DbFunctionAttribute(String, String)

初始化 DbFunctionAttribute 類別的新執行個體。

屬性

名稱 Description
FunctionName

映射到函數的名稱。

NamespaceName

映射到函式的命名空間。

適用於