Table of Contents

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

validator IValidator<T>

The validator instance.

name string

The property name.

expression Expression<Func<T, object>>

The property expression.

Returns

string

The error message for the property.

Type Parameters

T

The type of the entity.