Table of Contents

Struct ValidationIntent

Namespace
The.Entities.Validation
Assembly
Instagile.dll

Identifies the purpose of a validation. Rules which don't check the intent always apply, and will therefore affect the default Save report. Rules which do check it affect only commands validating under that intent - whatever its level, a finding scoped to a Confirm/Submit-like intent never blocks a plain save.

public readonly record struct ValidationIntent : IEquatable<ValidationIntent>
Implements
Inherited Members

Remarks

Custom intents should be declared in the model project so that every UI layer shares the same vocabulary.

Constructors

ValidationIntent(string)

Identifies the purpose of a validation. Rules which don't check the intent always apply, and will therefore affect the default Save report. Rules which do check it affect only commands validating under that intent - whatever its level, a finding scoped to a Confirm/Submit-like intent never blocks a plain save.

public ValidationIntent(string Name)

Parameters

Name string

Remarks

Custom intents should be declared in the model project so that every UI layer shares the same vocabulary.

Fields

Save

The default intent: an interactive form-save. Data will only be written if IsValid.

public static readonly ValidationIntent Save

Field Value

ValidationIntent

Properties

Name

public string Name { get; init; }

Property Value

string

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.