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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -