在异常详细信息中建议更多信息 [英] Suggest more information in exception detail

查看:78
本文介绍了在异常详细信息中建议更多信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调用SaveChanges时出现以下内部异常:

I got the following inner exception when calling SaveChanges:

A dependent property in a ReferentialConstraint is mapped to a store-generated column. Column: 'Id'.

很难追踪,因为我的大多数表都有一个通用的"Id"表。主键的名称。

It's hard to track down, because most of my tables have a generic "Id" name for the primary key.

我想建议该异常也表示该列所属的实体。

I'd like to suggest that the exception also indicates the entity that the column belongs to.

 

推荐答案

gxclarke,

 

感谢您的反馈。 
我们一定会考虑你的建议。

Thanks for the feedback.  We will certainly consider your suggestion.

 

< span style ="font-family:Calibri"> Arthur


这篇关于在异常详细信息中建议更多信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆