Class ValidationContext<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FastEndpoints
Assembly: FastEndpoints.dll
Syntax
public class ValidationContext<T> : ValidationContext
Type Parameters
Name | Description |
---|---|
T |
Properties
Instance
Declaration
public static ValidationContext<T> Instance { get; }
Property Value
Type | Description |
---|---|
ValidationContext<T> |
Methods
AddError(Expression<Func<T, Object>>, String, String, Severity)
Declaration
public void AddError(Expression<Func<T, object>> property, string errorMessage, string errorCode = null, Severity severity = Severity.Error)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> | property | |
System.String | errorMessage | |
System.String | errorCode | |
FluentValidation.Severity | severity |
ThrowError(Expression<Func<T, Object>>, String)
Declaration
public void ThrowError(Expression<Func<T, object>> property, string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> | property | |
System.String | errorMessage |