Regira-Packages

Regira.Entities.Validation.FluentValidation

FluentValidation rules in the write pipeline of Regira Entities. options.UseFluentValidation(assemblies) in the UseEntities() callback registers every AbstractValidator<T> in the given assemblies (scoped, so a validator can take the DbContext) and adds FluentEntityValidator, an IEntityValidator that runs them when an entity is saved or removed. EntityRuleSets names the rule sets for add, modify and remove, and GetOriginal() / GetOperation() read the write from within a rule. A failure’s message — a text or a translation key — goes out in the 400 with its placeholder values as args.

Installation

<PackageReference Include="Regira.Entities.Validation.FluentValidation" Version="6.*" />

Documentation

License

Regira Commercial License, with a free tier that applies automatically — no key is needed within its limits. A license key removes the limits and is validated fully offline. See the license text and the licensing overview; keys are available at regira.com/licensing.