Method GetErrorMessage
- Namespace
- Innova.Data.Validation
- Assembly
- Innova.Data.dll
GetErrorMessage<T>(IValidator<T>, string, Expression<Func<T, object>>)
Gets the error message for the specified property expression.
public static string GetErrorMessage<T>(this IValidator<T> validator, string name, Expression<Func<T, object>> expression)
Parameters
validatorIValidator<T>The validator instance.
namestringThe property name.
expressionExpression<Func<T, object>>The property expression.
Returns
- string
The error message for the property.
Type Parameters
TThe type of the entity.