fix: 移除AutoMapper依赖
This commit is contained in:
@@ -20,9 +20,6 @@ public static class AppApplicationServiceCollectionExtensions
|
||||
{
|
||||
services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly()));
|
||||
services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());
|
||||
|
||||
// (空行后) 注册 AutoMapper Profile
|
||||
services.AddAutoMapper(Assembly.GetExecutingAssembly());
|
||||
services.AddTransient(typeof(IPipelineBehavior<,>), typeof(ValidationBehavior<,>));
|
||||
|
||||
return services;
|
||||
|
||||
Reference in New Issue
Block a user