Ir al contenido

Buscar en el Ecosistema EricksonLopez.*

Escribe el nombre de una librería, ID de paquete NuGet, tipo .NET o concepto arquitectónico para buscar en el portal.

Configuración e Integraciones — SharedKernel

L1StableNuGet: v4.0.0Local HEAD: v5.0.1AOT: Full
using EricksonLopez.SharedKernel.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
namespace Example.SharedKernelConfig;
public static class PersistenceConfiguration
{
public static void Register(IServiceCollection services)
{
services.AddSharedKernelDomainEventsInterceptor();
}
public static void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
{
configurationBuilder.ConfigureStrongIdsFromAssembly(typeof(PersistenceConfiguration).Assembly);
}
}
  • Dapper (EricksonLopez.SharedKernel.Dapper): DapperStrongIdRegistry.Register<TId, TValue>() y DapperBclTypeHandlerRegistry.
  • JSON (EricksonLopez.SharedKernel.Json): StrongIdJsonConverter<TSelf, TValue> y StrongIdJsonConverterFactory.
  • OpenTelemetry (EricksonLopez.SharedKernel.OpenTelemetry): AddSharedKernelInstrumentation().