Skip to content

Diagnostic rules

CaeriusNet analyzers validate [GenerateDto] and [GenerateTvp] contracts at compile time. Diagnostics are emitted by the analyzer included with the CaeriusNet package and appear in IDE builds and dotnet build.

Use these pages as the rule reference for generated DTO and TVP mapper issues.

IDSeveritySummary
CAERIUS001ErrorType must be sealed
CAERIUS002ErrorType must be partial
CAERIUS003ErrorType must declare a primary constructor
CAERIUS004ErrorTvpName must not be empty
CAERIUS005WarningUnmapped CLR type falls back to sql_variant

Build policy

Keep error diagnostics fixed in source. Treat warning suppressions as design decisions and prefer documenting them near the affected type.

See also the higher-level Compiler Diagnostics guide for suppression and severity configuration.

Released under the MIT License.