abp template主项目 报automapper 的错

主项目用 vs 启动起来 后 直接 报错 

错误

Volo.Abp.AbpInitializationException:“An error occurred during the initialize Volo.Abp.Modularity.OnPreApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AutoMapper.AbpAutoMapperModule, Volo.Abp.AutoMapper, Version=3.0.5.0, Culture=neutral, PublicKeyToken=null:
Unmapped members were found. Review the types and members below.
Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type
For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters
=============================================================================================================
MasterPlanCreateDto -> MasterPlan (Destination member list)
SnAbp.Construction.Dtos.MasterPlan.MasterPlanCreateDto -> SnAbp.Construction.MasterPlans.Entities.MasterPlan (Destination member list)

Unmapped properties:
Project
Charger
WorkflowId
Workflow
WorkflowTemplateId
IsDeleted
DeleterId
DeletionTime
LastModificationTime
LastModifierId
CreationTime
CreatorId
Id
=============================================================================================================
MasterPlanUpdateDto -> MasterPlan (Destination member list)
SnAbp.Construction.Dtos.MasterPlan.MasterPlanUpdateDto -> SnAbp.Construction.MasterPlans.Entities.MasterPlan (Destination member list)

Unmapped properties:
Project
Charger
WorkflowId
Workflow
WorkflowTemplateId
IsDeleted
DeleterId
DeletionTime
LastModificationTime
LastModifierId
CreationTime
CreatorId
Id
. See the inner exception for details.”

 

原因 是对应 的 modules 模块  里面 的 automapper 配置 有问题,只需要 在 对应模块 的 xxxApplicationModule.cs 文件 里面 

将 true 改成  false 即可 

 

posted @ 2021-06-17 17:34  ifnk  阅读(770)  评论(0编辑  收藏  举报