14 lines
454 B
C#
14 lines
454 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace DigitalData.Core.Infrastructure.AutoMapper;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddEntityAutoMapper(this IServiceCollection services, Action<EntityAutoMapperOptions> entityAutoMapperOptionsAction)
|
|
{
|
|
EntityAutoMapperOptions options = new(services);
|
|
entityAutoMapperOptionsAction.Invoke(options);
|
|
return services;
|
|
}
|
|
}
|