ABP框架问题排查记录
一、Missing type map configuration or unsupported mapping.
问题是因为没有做两个实体之间的映射(实体有相同名时,注意要加命令空间)
二、Error mapping types. Mapping types:
两实体属性类型不对。
三、实体修改保存报错
An internal error occurred during your request!
Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded.
描述:如果信息直接取的是当前单表数据,然后再修改是没有问题的。假设用:projectCompanyRelativeManager.GetProjectCompanyRelativeByIdAsync
但是如果你是查询是关联出来的新实体,再转成当前的原实体进行更新,就会报如上错。解决:别直接更新了。已有成功解决方案。期待留言。