Table of Contents

Class RuleEvaluationOptions

Namespace
JD.Domain.Abstractions
Assembly
JD.Domain.Abstractions.dll

Represents the evaluation options for domain rules.

public sealed class RuleEvaluationOptions
Inheritance
RuleEvaluationOptions
Inherited Members

Properties

Context

Gets additional context data for rule evaluation.

public IReadOnlyDictionary<string, object?> Context { get; init; }

Property Value

IReadOnlyDictionary<string, object>

Default

Gets the default evaluation options.

public static RuleEvaluationOptions Default { get; }

Property Value

RuleEvaluationOptions

IncludeInfo

Gets a value indicating whether to include informational results.

public bool IncludeInfo { get; init; }

Property Value

bool

PropertyName

Gets the name of a specific property to evaluate rules for. If null, evaluates rules for all properties.

public string? PropertyName { get; init; }

Property Value

string

RuleSet

Gets the name of the rule set to evaluate. If null, evaluates all rules.

public string? RuleSet { get; init; }

Property Value

string

StopOnFirstError

Gets a value indicating whether to stop on first error.

public bool StopOnFirstError { get; init; }

Property Value

bool