Interface IDefaultValidationMessageProvider
- Namespace
- Dmnk.LocalizedDataAnnotations.MessageProvider
- Assembly
- Dmnk.LocalizedDataAnnotations.dll
Defines the set of messages that the default ValidationAttributes in System.ComponentModel.DataAnnotations use.
public interface IDefaultValidationMessageProvider
Properties
AllowedValues
net8+: AllowedValuesAttribute
key: AllowedValuesAttribute_Invalid
string? AllowedValues { get; }
Property Value
Base64String
net8+: Base64StringAttribute
key: Base64StringAttribute_Invalid
string? Base64String { get; }
Property Value
Compare
key: CompareAttribute_MustMatch
string? Compare { get; }
Property Value
Custom
key: CustomValidationAttribute_ValidationError
string? Custom { get; }
Property Value
DataTypeCreditCard
key: CreditCardAttribute_Invalid
string? DataTypeCreditCard { get; }
Property Value
DataTypeEmailAddress
key: EmailAddressAttribute_Invalid
string? DataTypeEmailAddress { get; }
Property Value
DataTypeFileExtension
key: FileExtensionsAttribute_Invalid
string? DataTypeFileExtension { get; }
Property Value
DataTypePhone
key: PhoneAttribute_Invalid
string? DataTypePhone { get; }
Property Value
DataTypeUrl
key: UrlAttribute_Invalid
string? DataTypeUrl { get; }
Property Value
DeniedValues
net8+: DeniedValuesAttribute
key: DeniedValuesAttribute_Invalid
string? DeniedValues { get; }
Property Value
Fallback
All other messages are optional - this one is not since it is used as a fallback.
Suggested key: ValidationAttribute_ValidationError
string Fallback { get; }
Property Value
Length
net8+: LengthAttribute
key: LengthAttribute_ValidationError
string? Length { get; }
Property Value
MaxLength
key: MaxLengthAttribute_ValidationError
string? MaxLength { get; }
Property Value
MinLength
key: MinLengthAttribute_ValidationError
string? MinLength { get; }
Property Value
Range
key: RangeAttribute_ValidationError
string? Range { get; }
Property Value
RangeMaxExclusive
net8+: RangeAttribute with exclusive range
key: RangeAttribute_ValidationError_MaxExclusive
string? RangeMaxExclusive { get; }
Property Value
RangeMinExclusive
net8+: RangeAttribute with exclusive range
key: RangeAttribute_ValidationError_MinExclusive
string? RangeMinExclusive { get; }
Property Value
RangeMinMaxExclusive
net8+: RangeAttribute with exclusive range
key: RangeAttribute_ValidationError_MinExclusive_MaxExclusive
string? RangeMinMaxExclusive { get; }
Property Value
RegularExpression
key: RegexAttribute_ValidationError
string? RegularExpression { get; }
Property Value
Required
key: RequiredAttribute_ValidationError
string? Required { get; }
Property Value
StringLength
key: StringLengthAttribute_ValidationError
string? StringLength { get; }
Property Value
StringLengthIncludingMinimum
key: StringLengthAttribute_ValidationErrorIncludingMinimum
string? StringLengthIncludingMinimum { get; }