Table of Contents

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 string

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.