随笔分类 -  01 愚蠢的问题

摘要:http://stackoverflow.com/questions/5243486/nhibernate-3-0-rounding-a-decimal-to-5-decimal-places-why<propertyname="ExchangeRate"precision="10"scale="7"/>现在NH3.0 默认的字段 decimal型是保存5位小数,无视你的数据库设计的。所以一开始配置HBM的时候就要把decimal的大小要写好,不然就给你吃药 阅读全文
posted @ 2013-06-06 15:02 kwok.io 阅读(272) 评论(0) 推荐(0)
摘要:http://stackoverflow.com/q/13839754/1825719SQL Server Data Types and Their .NET Framework Equivalentshttp://msdn.microsoft.com/en-us/library/ms131092%28v=sql.90%29.aspx"Specified cast is not valid."myReader.GetValue(44) is showing a value of 0.0 when this happens. 这个问题会在0值出现错误,一般数值则无错SQL S 阅读全文
posted @ 2013-06-06 14:58 kwok.io 阅读(149) 评论(0) 推荐(0)