EdmFunctionAttribute 类
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
注意:此 API 现在已过时。
指示给定的方法是 EDM 函数的代理。
继承层次结构
System.Object
System.Attribute
System.Data.Entity.DbFunctionAttribute
System.Data.Entity.Core.Objects.DataClasses.EdmFunctionAttribute
命名空间: System.Data.Entity.Core.Objects.DataClasses
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<AttributeUsageAttribute(AttributeTargets.Method, Inherited := False, AllowMultiple := False)> _
<ObsoleteAttribute("This attribute has been replaced by System.Data.Entity.DbFunctionAttribute.")> _
Public NotInheritable Class EdmFunctionAttribute _
Inherits DbFunctionAttribute
用法
Dim instance As EdmFunctionAttribute
[AttributeUsageAttribute(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
[ObsoleteAttribute("This attribute has been replaced by System.Data.Entity.DbFunctionAttribute.")]
public sealed class EdmFunctionAttribute : DbFunctionAttribute
[AttributeUsageAttribute(AttributeTargets::Method, Inherited = false, AllowMultiple = false)]
[ObsoleteAttribute(L"This attribute has been replaced by System.Data.Entity.DbFunctionAttribute.")]
public ref class EdmFunctionAttribute sealed : public DbFunctionAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Method, Inherited = false, AllowMultiple = false)>]
[<ObsoleteAttribute("This attribute has been replaced by System.Data.Entity.DbFunctionAttribute.")>]
type EdmFunctionAttribute =
class
inherit DbFunctionAttribute
end
public final class EdmFunctionAttribute extends DbFunctionAttribute
EdmFunctionAttribute 类型公开以下成员。
构造函数
名称 | 描述 | |
---|---|---|
EdmFunctionAttribute | 创建新的 DbFunctionAttribute 实例。 |
顶部
属性
名称 | 描述 | |
---|---|---|
FunctionName | 映射到的函数的名称。 (继承自 DbFunctionAttribute。) | |
NamespaceName | 映射到的函数的命名空间。 (继承自 DbFunctionAttribute。) | |
TypeId | (继承自 Attribute。) |
顶部
方法
名称 | 描述 | |
---|---|---|
Equals | (继承自 Attribute。) | |
GetHashCode | (继承自 Attribute。) | |
GetType | (继承自 Object。) | |
IsDefaultAttribute | (继承自 Attribute。) | |
Match | (继承自 Attribute。) | |
ToString | (继承自 Object。) |
顶部
显式接口实现
名称 | 描述 | |
---|---|---|
_Attribute.GetIDsOfNames | (继承自 Attribute。) | |
_Attribute.GetTypeInfo | (继承自 Attribute。) | |
_Attribute.GetTypeInfoCount | (继承自 Attribute。) | |
_Attribute.Invoke | (继承自 Attribute。) |
顶部
备注
请注意,从 EF6 开始,此特性已被 DbFunctionAttribute 替换。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。