Method WithNameAndIgnore
- Namespace
- Innova.Data.Validation
- Assembly
- Innova.Data.dll
WithNameAndIgnore<T, TProperty>(IRuleBuilderOptions<T, TProperty>, string, List<string>, string)
Sets the display name for the property being validated and specifies properties to ignore.
public static IRuleBuilderOptions<T, TProperty> WithNameAndIgnore<T, TProperty>(this IRuleBuilderOptions<T, TProperty> rule, string entityName, List<string> IgnoreProperties, string ExtraCaption = null)
Parameters
rule
IRuleBuilderOptions<T, TProperty>The rule builder options.
entityName
stringThe name of the entity.
IgnoreProperties
List<string>The list of property names to ignore.
ExtraCaption
stringThe extra caption to append to the display name.
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.