Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parameter value is out of range in Entity Framework (DB first)

In SQL, I have a decimal column:

enter image description here

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

enter image description here

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.

like image 275
Jonathan Avatar asked Dec 06 '25 00:12

Jonathan


1 Answers

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

like image 112
Jonathan Avatar answered Dec 08 '25 16:12

Jonathan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!