EntityFieldExtensions.GetAttribute<TAttribute> method
namespace: Serenity.Data assembly: Serenity.Net.Entity
Gets the attribute.
public static TAttribute GetAttribute<TAttribute>(this Field field)
where TAttribute : Attribute
| parameter | description |
|---|---|
| TAttribute | The type of the attribute. |
| field | The field. |
Return Value
First attribute with specified type.
See Also
- class TAttribute
- class Field
- class EntityFieldExtensions