Table of Contents

Method GetCaption

Namespace
Innova.Data.Validation
Assembly
Innova.Data.dll

GetCaption<EntityType>(IValidator, Expression<Func<EntityType, object>>)

Gets the caption for the specified property expression.

public static string GetCaption<EntityType>(this IValidator validator, Expression<Func<EntityType, object>> expression)

Parameters

validator IValidator

The validator instance.

expression Expression<Func<EntityType, object>>

The property expression.

Returns

string

The caption for the property.

Type Parameters

EntityType

The type of the entity.

GetCaption<EntityType>(IValidator, string)

Gets the caption for the specified property name.

public static string GetCaption<EntityType>(this IValidator validator, string name)

Parameters

validator IValidator

The validator instance.

name string

The property name.

Returns

string

The caption for the property.

Type Parameters

EntityType

The type of the entity.