Enum ValueObjectChecks
Namespace: AdCodicem.ValueObjects.EntityFrameworkCore
Assembly: AdCodicem.ValueObjects.EntityFrameworkCore.dll
The rules of a value object that
[Flags]
public enum ValueObjectChecks
Fields
None = 0
No rule: only a pattern, when
Lengths = 1
The minimum length of text, MinLength, counted so that the database never counts fewer characters than .NET
does. The maximum length stays the size of the column.
Bounds = 2
The bounds of
KnownValues = 4
The known values of a closed value set, where every value the type accepts is stored as one of them.
Remarks
Each rule is written only where the database refuses no value the value object accepts: a constraint stricter than the
type would fail a write the application validated. A rule only code checks, the checksum of an