语言

EntityAttribute 类

定义

该属性用于指定方法参数绑定到一个实体,该实体可通过实现 IResolver解析。

[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=true, Inherited=true)]
[System.Serializable]
public sealed class EntityAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=true, Inherited=true)>]
[<System.Serializable>]
type EntityAttribute = class
    inherit Attribute
Public NotInheritable Class EntityAttribute
Inherits Attribute
继承
EntityAttribute
属性

构造函数

名称 说明
EntityAttribute(String)

构造 EntityAttribute。

字段

名称 说明
Name

实体名称。

适用于