Skip to content

ValidationResult ​

Namespace: MJCZone.DapperMatic.AspNetCore.Validation

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

The result of a validation operation.

public

Contents ​

Methods (6) | Properties (2)

Methods ​

MethodSummary
SuccessCreates a successful validation result.
Failure
GetType
ToString
Equals
GetHashCode

Success ​

Creates a successful validation result.

csharp
ValidationResult Success()

Returns ​

Type: ValidationResult

A successful .

Failure ​

csharp
Failure()

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

IsValid ​

Gets a value indicating whether the validation was successful.

Type: bool

Errors ​

Gets the list of validation error messages, if any.

Type: Dictionary<string, List<string>>