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
LevelMessageLevelSeverity: Error findings make the report invalid; lower levels are advisory.
MessagestringHuman-readable description, suitable for display beside the property or in a summary.
EntityIEntityThe entity within the validated graph that the finding belongs to.
PropertyPropertyInfoThe 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
Level
Severity: Error findings make the report invalid; lower levels are advisory.
public MessageLevel Level { get; init; }
Property Value
Message
Human-readable description, suitable for display beside the property or in a summary.
public string Message { get; init; }
Property Value
Property
The property the finding is anchored to, or null for an entity-level finding.
public PropertyInfo? Property { get; init; }
Property Value
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
rootIEntity