RunicValidationMember record

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public sealed record RunicValidationMember : IEquatable<RunicValidationMember>

Inherits or implements IEquatable.

The member whose validation attribute reported an error, for RunicValidationOptions.TextFor.

Parameters

ModelType

The type of the object that has the member, such as the ViewModel or a DTO.

Name

The .NET property name.

DisplayName

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

The 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

ModelType

The type of the object that has the member, such as the ViewModel or a DTO.

Name

The .NET property name.

DisplayName

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

The 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.