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
validatorIValidatorThe validator instance.
expressionExpression<Func<EntityType, object>>The property expression.
Returns
- string
 The caption for the property.
Type Parameters
EntityTypeThe 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
validatorIValidatorThe validator instance.
namestringThe property name.
Returns
- string
 The caption for the property.
Type Parameters
EntityTypeThe type of the entity.