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
IValidatorThe 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
IValidatorThe validator instance.
name
stringThe property name.
Returns
- string
The caption for the property.
Type Parameters
EntityType
The type of the entity.