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
- ruleIRuleBuilderOptions<T, TProperty>
- The rule builder options. 
- entityNamestring
- The 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.