Method WithLocalizedName
- Namespace
- Innova.Data.Validation
- Assembly
- Innova.Data.dll
WithLocalizedName<T, TProperty>(IRuleBuilderOptions<T, TProperty>, string)
Sets the display name for the property being validated.
public static IRuleBuilderOptions<T, TProperty> WithLocalizedName<T, TProperty>(this IRuleBuilderOptions<T, TProperty> rule, string entityName)
Parameters
rule
IRuleBuilderOptions<T, TProperty>The rule builder options.
entityName
stringThe name of the entity.
Returns
- IRuleBuilderOptions<T, TProperty>
The rule builder options.
Type Parameters
T
The type of the object being validated.
TProperty
The type of the property being validated.