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
ruleIRuleBuilderOptions<T, TProperty>The rule builder options.
entityNamestringThe name of the entity.
IgnorePropertiesList<string>The list of property names to ignore.
ExtraCaptionstringThe extra caption to append to the display name.
Returns
- IRuleBuilderOptions<T, TProperty>
The rule builder options.
Type Parameters
TThe type of the object being validated.
TPropertyThe type of the property being validated.