EntityFieldExtensions.GetAttribute<TAttribute> method

namespace: Serenity.Data   assemblySerenity.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