十进制值可能出现的问题? [英] Possible problems with decimal values?
问题描述
我正在使用加密数据库。到目前为止工作正常。
Im working with an encrypted database. Works fine so far.
但是当我试图同步十进制列时,我将五个零添加到发送小数。
But when im trying to synchronize decimal columns im getting five zeros added to the send decimals.
cliend发送
< d:Kurs m:type =" Edm.Decimal"> 1.00000< / d:Kurs> (取自Fiddler)
<d:Kurs m:type="Edm.Decimal">1.00000</d:Kurs> (taken from Fiddler)
并且服务器使用 更新数据库中的实体100000
and the server updates the entity in the database with 100000
有人可以确认吗?
我问因为我的加密,因为我必须编辑存储过程的某些部分,和服务的某些部分。
I'm asking because of my encryption, for that i had to edit some parts of the Stored Procedures, and some parts of the service.
我想知道我是否做错了什么或是否是服务器中的错误。
I'm wondering if i did something wrong or if its a bug in the server.
编辑:
只是查看存储过程收到的内容。
Just looked into what the stored Procedure recieves.
给出的参数是100000而不是1.00000我认为错误在于服务器。
The Parameter given was 100000 not 1.00000 fo i think the error lies in the server.
编辑结束
问候
Michael
推荐答案
这似乎是本地化的一个问题。解析特定于语言环境的格式化字符串不起作用。我刚刚遇到与DateTime类似的问题。
It seems like a problem with localization. The parsing of locale specific formatted strings doesn't work yet. I have just had a similar issue with DateTime.
尝试确保两端共享相同的区域设置,最好是en-US。
Try to ensure both ends share the same locale, preferably en-US.
这篇关于十进制值可能出现的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!