Regira.Entities.DependencyInjection
6.5.0
dotnet add package Regira.Entities.DependencyInjection --version 6.5.0
NuGet\Install-Package Regira.Entities.DependencyInjection -Version 6.5.0
<PackageReference Include="Regira.Entities.DependencyInjection" Version="6.5.0" />
<PackageVersion Include="Regira.Entities.DependencyInjection" Version="6.5.0" />
<PackageReference Include="Regira.Entities.DependencyInjection" />
paket add Regira.Entities.DependencyInjection --version 6.5.0
#r "nuget: Regira.Entities.DependencyInjection, 6.5.0"
#:package Regira.Entities.DependencyInjection@6.5.0
#addin nuget:?package=Regira.Entities.DependencyInjection&version=6.5.0
#tool nuget:?package=Regira.Entities.DependencyInjection&version=6.5.0
Regira.Entities.DependencyInjection
The registration API of Regira Entities. services.UseEntities<TContext>(o => o.UseDefaults()) sets the global options and wires the DbContext plumbing, and each For<TEntity>(...) registers an entity's IEntityService together with its query builders, preppers, validators, primers and reactors. At host start it logs the registered entities with the resolved license tier and, in the Development environment by default, validates the registrations. It has no ASP.NET Core dependency, so it also serves console and worker hosts; Regira.Entities.Web adds the controllers on top.
Installation
<PackageReference Include="Regira.Entities.DependencyInjection" Version="6.*" />
- This package enforces the Regira Entities free tier: every entity type registered through
For<>()counts, up to 5 simple + 2 complex per application. A key registered beforehand withUseRegira(...)from Regira.Licensing, a dependency of this package, removes the limit. - It depends on Regira.Entities.EFcore and so brings EF Core, but no database provider: add one (for example
Microsoft.EntityFrameworkCore.Sqlite) to the application.
Documentation
- Dependency Injection — a basic setup:
UseRegira,UseEntitiesand inline or class-basedFor<>()configuration - Services → Dependency Injection — the full configuration, with every helper service registered globally and per entity
- Startup validation — the registration checks
UseEntities()runs at host start, and how to configure them
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Regira.Entities.EFcore (>= 6.5.0)
- Regira.Licensing (>= 6.5.0)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Regira.Entities.EFcore (>= 6.5.0)
- Regira.Licensing (>= 6.5.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Regira.Entities.DependencyInjection:
| Package | Downloads |
|---|---|
|
Regira.Entities.Web
REST/CRUD Web API for Regira entities: EntityControllerBase controllers with list, search, filter, sort and paging endpoints. Top-level web entry point — brings the DependencyInjection and EF Core packages transitively. Free tier included — a license key removes the free-tier limits. |
|
|
Regira.Entities.Mapping.AutoMapper
AutoMapper integration for Regira entity mapping. Free tier included — a license key removes the free-tier limits. |
|
|
Regira.Entities.Mapping.Mapster
Mapster integration for Regira entity mapping. Free tier included — a license key removes the free-tier limits. |
|
|
Regira.Entities.Validation.FluentValidation
FluentValidation integration for Regira entity validation: AbstractValidator rules run in the entity write pipeline. Free tier included — a license key removes the free-tier limits. |
GitHub repositories
This package is not used by any popular GitHub repositories.