ITLab.Template.DevPack.Infrastructure
Provides technical infrastructure building blocks, especially EF Core interception and integrations.
Nota de navegação: este namespace é container; os tipos vivem em sub-namespaces. Veja
Infrastructure/EfCore/README.mdpara o mapa do próximo nível eInfrastructure/EfCore/Interceptors/README.mdpara o conteúdo real (interceptors).
Componentes
| Tipo | Nome | Responsabilidade |
|---|---|---|
| Namespace | Infrastructure.EfCore | Shared persistence infrastructure for EF Core |
| Namespace | Infrastructure.EfCore.Interceptors | SaveChanges interceptors for auditing, soft delete and domain events |
Como usar
// Register DevPack EF Core interceptors in DbContext options.
services.AddScoped<AuditableEntityInterceptor>();
services.AddScoped<SoftDeleteInterceptor>();
services.AddScoped<DispatchDomainEventsInterceptor>();
O que não fazer
- Do not place product domain rules inside infrastructure interceptors.
- Do not use interceptors as replacement for explicit transactional workflows.
Extensão pelo produto
- Products can add custom interceptors (multi-tenant filters, outbox integration, audit sinks) while keeping shared contracts.