Table of Contents

Class ValidationFinding

Namespace
The.Entities.Validation
Assembly
Instagile.dll

One fact reported by a validation run.

public sealed record ValidationFinding : IEquatable<ValidationFinding>
Inheritance
ValidationFinding
Implements
Inherited Members

Constructors

ValidationFinding(MessageLevel, string, IEntity, PropertyInfo?)

One fact reported by a validation run.

public ValidationFinding(MessageLevel Level, string Message, IEntity Entity, PropertyInfo? Property = null)

Parameters

Level MessageLevel

Severity: Error findings make the report invalid; lower levels are advisory.

Message string

Human-readable description, suitable for display beside the property or in a summary.

Entity IEntity

The entity within the validated graph that the finding belongs to.

Property PropertyInfo

The property the finding is anchored to, or null for an entity-level finding.

Properties

Entity

The entity within the validated graph that the finding belongs to.

public IEntity Entity { get; init; }

Property Value

IEntity

Level

Severity: Error findings make the report invalid; lower levels are advisory.

public MessageLevel Level { get; init; }

Property Value

MessageLevel

Message

Human-readable description, suitable for display beside the property or in a summary.

public string Message { get; init; }

Property Value

string

Property

The property the finding is anchored to, or null for an entity-level finding.

public PropertyInfo? Property { get; init; }

Property Value

PropertyInfo

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

ToString(IEntity?)

public string ToString(IEntity? root)

Parameters

root IEntity

Returns

string