实体框架参数值超出范围(DB优先)

时间:2020-12-25 02:06:34

In SQL, I have a decimal column:

在SQL中,我有一个十进制列:

实体框架参数值超出范围(DB优先)

Which I've mapped to an entity property in my edmx:

它映射到我的edmx中的一个实体属性:

实体框架参数值超出范围(DB优先)

Frustratingly, I get an error when trying to save a value that does lie in this range:

令人沮丧的是,当我试图保存一个在这个范围内的值时,我得到了一个错误:

Parameter value '164.2640000000' is out of range

Does anyone have any ideas why this is happening? The answers in this similar question are not much help, as I'm not using code first.

有人知道为什么会这样吗?在这个类似的问题中,答案并没有多少帮助,因为我没有首先使用代码。

1 个解决方案

#1


5  

Oddly, doing another 'update from database' solved this issue.

奇怪的是,做另一个“数据库更新”解决了这个问题。

#1


5  

Oddly, doing another 'update from database' solved this issue.

奇怪的是,做另一个“数据库更新”解决了这个问题。