public sealed record RunicValidationMember : IEquatable<RunicValidationMember> The member whose validation attribute reported an error, for RunicValidationOptions.TextFor.
Parameters
ModelTypeThe type of the object that has the member, such as the ViewModel or a DTO.
NameThe .NET property name.
DisplayNameThe name the attribute's message used:
[Display(Name)],[DisplayName]orName, or the first of them when the Bridge paired the error with the attribute without matching its message, such as one formatted in another culture.MessageThe error's message, which stays the fallback of the text reference.
Constructors
RunicValidationMember
public RunicValidationMember(Type ModelType, string Name, string DisplayName, string Message) The member whose validation attribute reported an error, for RunicValidationOptions.TextFor.
Parameters
ModelTypeThe type of the object that has the member, such as the ViewModel or a DTO.
NameThe .NET property name.
DisplayNameThe name the attribute's message used:
[Display(Name)],[DisplayName]orName, or the first of them when the Bridge paired the error with the attribute without matching its message, such as one formatted in another culture.MessageThe error's message, which stays the fallback of the text reference.
Properties
DisplayName
public string DisplayName { get; init; } The name the attribute's message used: [Display(Name)], [DisplayName] or Name, or the first of them when the Bridge paired the error with the attribute without matching its message, such as one formatted in another culture.
Message
public string Message { get; init; } The error's message, which stays the fallback of the text reference.
ModelType
public Type ModelType { get; init; } The type of the object that has the member, such as the ViewModel or a DTO.
Name
public string Name { get; init; } The .NET property name.