Pular para o conteúdo principal
Versão: 10.4.1

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.md para o mapa do próximo nível e Infrastructure/EfCore/Interceptors/README.md para o conteúdo real (interceptors).

Componentes

TipoNomeResponsabilidade
NamespaceInfrastructure.EfCoreShared persistence infrastructure for EF Core
NamespaceInfrastructure.EfCore.InterceptorsSaveChanges 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.