c# - Entity framework appending a decimal place to a field of type decimal(10,0) -


I am using the EF database first. I have an area in my database that I know will always be 10 digits long, so naturally I have selected the decimal (10,0) type, when I insert the value into the table I can do any number up to 10 points long, but when I insert an entity with EF 6, it adds 0 decimal and then exits one parameter out of the boundary value. Type the field type decimal

And a prudent investigation, here is the SQL Server column:

.

< / Div>

The error looks like a bug in the EF, but if it is always an integer, is it instead of int decimal? I am thinking both for rational and performance.


Comments

Popular posts from this blog

Folder list php -

testing Spring-Security -

javascript - NodeJS "Error code: ERR_EMPTY_RESPONSE" -