-
Notifications
You must be signed in to change notification settings - Fork 0
Izayoi.Data.Validation.DataValidator
IzayoiJiichan edited this page Sep 9, 2024
·
2 revisions
Namespace | Izayoi.Data.Validation |
Assembly | Izayoi.Data.Validation.dll |
Represents a data varidator.
public class DataValidator : IDataValidator
Object -> DataValidator
Name | Summary |
---|---|
DataValidator() | Initializes an instance of the DataValidator class. |
Name | Returns | Summary |
---|---|---|
TryValidateErrors(in object instance, out List<ValidationError> validationErrors) | bool | Attempts to validate the property values of the specified instance. |
TryValidateErrorsRef(in object instance, ref List<ValidationError> validationErrors) | bool | Attempts to validate the property values of the specified instance. |
TryValidateErrorsRef(in object instance, in bool breakOnFirstPropertyError, in bool breakOnPerFirstPropertyError, ref List<ValidationError> validationErrors) | bool | Attempts to validate the property values of the specified instance. |
TryValidateResults(in object instance, out List<ValidationResult> validationResults) | bool | Attempts to validate the property values of the specified instance. |
TryValidateResultsRef(in object instance, ref List<ValidationResult> validationResults) | bool | Attempts to validate the property values of the specified instance. |
TryValidateResultsRef(in object instance, in bool breakOnFirstPropertyError, in bool breakOnPerFirstPropertyError, ref List<ValidationResult> validationResults) | bool | Attempts to validate the property values of the specified instance. |
ValidateErrors(in object instance, in bool breakOnFirstPropertyError = false, in bool breakOnPerFirstPropertyError = false) | List<ValidationError> | Validates the property values of the specified instance. |
ValidateResults(in object instance, in bool breakOnFirstPropertyError = false, in bool breakOnPerFirstPropertyError = false) | List<ValidationResult> | Validates the property values of the specified instance. |
Reuse a DataValidator
object whenever possible.
Product | Versions |
---|---|
.NET | 8 |
.NET Standard | 2.0, 2.1 |
- Izayoi.Data
- Izayoi.Data.Query
- Izayoi.Data.Repository
- Izayoi.Data.Validation
Examples