One of my entity objects (EF4) has a property that is a decimal. The field in the database is Decimal(18,2)
If I set the value to 30.4777 it only sends 30.47 over to the db in the insert statement (as confirmed by the tracer). Is there a way to get it to send 30.4777 and then just let the database round it off (which it seems happy to otherwise do)?
You can set the
PrecisionandScaleproperties of your decimal field yourself. Just right-click the property in the designer, and chooseProperties. In the properties window you will findPrecisionandScale. SetScaleto 4 and try your queries again.