using Microsoft.Extensions.DependencyInjection;
using Print.Forum.Application.Contracts;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
namespace Print.Application;
///
/// 项目模块依赖、组件依赖
///
[DependsOn(
typeof(AbpAutoMapperModule),
typeof(ForumApplicationContractsModule)
)]
public class ForumApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
var services = context.Services;
// 添加ObjectMapper注入
services.AddAutoMapperObjectMapper();
// Abp AutoMapper设置
Configure(config =>
{
// 添加对应依赖关系Profile
config.AddMaps();
});
}
}