Class DomainValidationMetadata
- Namespace
- JD.Domain.AspNetCore
- Assembly
- JD.Domain.AspNetCore.dll
Metadata marker for endpoints that require domain validation.
public sealed class DomainValidationMetadata
- Inheritance
-
DomainValidationMetadata
- Inherited Members
Constructors
DomainValidationMetadata(Type, string?, bool?)
Initializes a new instance of the DomainValidationMetadata class.
public DomainValidationMetadata(Type validationType, string? ruleSet = null, bool? stopOnFirstError = null)
Parameters
validationTypeTypeThe type to validate.
ruleSetstringOptional rule set name.
stopOnFirstErrorbool?Optional stop on first error override.
Properties
RuleSet
Gets the rule set to evaluate. Null means use default.
public string? RuleSet { get; }
Property Value
StopOnFirstError
Gets whether to stop on first error. Null means use default from options.
public bool? StopOnFirstError { get; }
Property Value
- bool?
ValidationType
Gets the type to validate.
public Type ValidationType { get; }