mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
789 B
22 lines
789 B
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
using Volo.Abp.AutoMapper;
|
|
using Volo.Abp.ObjectMapping;
|
|
|
|
namespace Microsoft.Extensions.DependencyInjection;
|
|
|
|
public static class AbpAutoMapperServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddAutoMapperObjectMapper(this IServiceCollection services)
|
|
{
|
|
return services.Replace(
|
|
ServiceDescriptor.Transient<IAutoObjectMappingProvider, AutoMapperAutoObjectMappingProvider>()
|
|
);
|
|
}
|
|
|
|
public static IServiceCollection AddAutoMapperObjectMapper<TContext>(this IServiceCollection services)
|
|
{
|
|
return services.Replace(
|
|
ServiceDescriptor.Transient<IAutoObjectMappingProvider<TContext>, AutoMapperAutoObjectMappingProvider<TContext>>()
|
|
);
|
|
}
|
|
}
|
|
|