开发者

NHibernate: using c# doubles with SQL Server as "floats"

I am using NH to map c#-double values into SQL Server 2005 as floats. Everything works perfectly fine, ho开发者_StackOverflowwever recently I tried running the SchemaValidator.

SchemaValidator fails:

Found: float, Expected DOUBLE PRECISION

Creating the tables using DOUBLE PRECISION works, but SQL Server will report the columns as float

Am I missing something here, or is this a (minor) bug in NHibernates type-Mapping?

EDIT:

This bug is fixed in the 2014-06-27 release: NHibernate-4.0.0.Alpha2


Float(53) or just float in SQL Server has the same precision as C# double, so it would be a bug in the validator.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜