-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: using c# doubles with SQL Server "floats"
PostPosted: Wed Jan 19, 2011 4:57 pm 
Newbie

Joined: Fri Oct 15, 2010 5:12 pm
Posts: 2
Hi.
I am using NH to map c#-double values into SQL Server 2005 as floats. Everything works perfectly fine. However, recently I tried running the SchemaValidator.

SchemaValidator fails:

Quote:
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?

Nils


Top
 Profile  
 
 Post subject: Re: using c# doubles with SQL Server "floats"
PostPosted: Wed Jul 18, 2012 1:40 pm 
Newbie

Joined: Wed Jul 18, 2012 1:37 pm
Posts: 1
nils.andresen wrote:
Hi.
I am using NH to map c#-double values into SQL Server 2005 as floats. Everything works perfectly fine. However, recently I tried running the SchemaValidator.

SchemaValidator fails:

Quote:
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?

Nils


Don't know the exact answer , try look this c# http://csharp.net-informations.com tutorial , it may help you.

Antonio.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.