Table of Contents

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

string

Base64String

net8+: Base64StringAttribute

key: Base64StringAttribute_Invalid

string? Base64String { get; }

Property Value

string

Compare

key: CompareAttribute_MustMatch

string? Compare { get; }

Property Value

string

Custom

key: CustomValidationAttribute_ValidationError

string? Custom { get; }

Property Value

string

DataTypeCreditCard

key: CreditCardAttribute_Invalid

string? DataTypeCreditCard { get; }

Property Value

string

DataTypeEmailAddress

key: EmailAddressAttribute_Invalid

string? DataTypeEmailAddress { get; }

Property Value

string

DataTypeFileExtension

key: FileExtensionsAttribute_Invalid

string? DataTypeFileExtension { get; }

Property Value

string

DataTypePhone

key: PhoneAttribute_Invalid

string? DataTypePhone { get; }

Property Value

string

DataTypeUrl

key: UrlAttribute_Invalid

string? DataTypeUrl { get; }

Property Value

string

DeniedValues

net8+: DeniedValuesAttribute

key: DeniedValuesAttribute_Invalid

string? DeniedValues { get; }

Property Value

string

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

string

Length

net8+: LengthAttribute

key: LengthAttribute_ValidationError

string? Length { get; }

Property Value

string

MaxLength

key: MaxLengthAttribute_ValidationError

string? MaxLength { get; }

Property Value

string

MinLength

key: MinLengthAttribute_ValidationError

string? MinLength { get; }

Property Value

string

Range

key: RangeAttribute_ValidationError

string? Range { get; }

Property Value

string

RangeMaxExclusive

net8+: RangeAttribute with exclusive range

key: RangeAttribute_ValidationError_MaxExclusive

string? RangeMaxExclusive { get; }

Property Value

string

RangeMinExclusive

net8+: RangeAttribute with exclusive range

key: RangeAttribute_ValidationError_MinExclusive

string? RangeMinExclusive { get; }

Property Value

string

RangeMinMaxExclusive

net8+: RangeAttribute with exclusive range

key: RangeAttribute_ValidationError_MinExclusive_MaxExclusive

string? RangeMinMaxExclusive { get; }

Property Value

string

RegularExpression

key: RegexAttribute_ValidationError

string? RegularExpression { get; }

Property Value

string

Required

key: RequiredAttribute_ValidationError

string? Required { get; }

Property Value

string

StringLength

key: StringLengthAttribute_ValidationError

string? StringLength { get; }

Property Value

string

StringLengthIncludingMinimum

key: StringLengthAttribute_ValidationErrorIncludingMinimum

string? StringLengthIncludingMinimum { get; }

Property Value

string