Skip to main content
Version: 0.3.x (0.3.0)

Enum ValueObjectChecks

Namespace: AdCodicem.ValueObjects.EntityFrameworkCore
Assembly: AdCodicem.ValueObjects.EntityFrameworkCore.dll

The rules of a value object that writes as CHECK constraints, combined as flags.

[Flags]
public enum ValueObjectChecks

Fields​

None = 0

No rule: only a pattern, when names a dialect.

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 and , where the column orders values as .NET does.

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 , has no SQL form and stays in the application.