using Microsoft.Extensions.DependencyInjection; using Quadarax.Foundation.Core.Data.Domain; using Quadarax.Foundation.Core.Data.Interface.Domain; using Quadarax.Foundation.Core.Data.Mapper; namespace Quadarax.Foundation.Core.Business.Injection.Extensions { public static class ServiceCollectionExt { public static IServiceCollection AddDataDomain(this IServiceCollection services) { services.AddScoped, DomainContextResolver>(); services.AddScoped, UnitOfWorkDataDomain>(); return services; } public static IServiceCollection AddMapper(this IServiceCollection services) where TMapper : Mapper, new() { return services.AddSingleton(); } } }