IMHO - even with timespan between 0 and 24h, current impl give strange results. As shown in attached jira tests, the timespan read has incorrect days (even when timespan between 0 and 24h). Timespan persisted != timespan read. Earlier nh tests only confirmed that hour, minutes and seconds properties of the timespan are the same.
From: nhusers@googlegroups.com [mailto:nhus...@googlegroups.com] On Behalf Of Dario Quintana Sent: den 25 mars 2009 16:50 To: nhusers@googlegroups.com Subject: [nhusers] Re: TimeSpan >24h or <0h The idea of TimeSpan is use for example on SqlServer2008 the Db.Type: time. Then you will able to persist times between: 00:00:00.000000 to 23:59:59.9999999. On Wed, Mar 25, 2009 at 10:54 AM, Roger Kratz <roger.kr...@teleopti.com<mailto:roger.kr...@teleopti.com>> wrote: Done http://nhjira.koah.net/browse/NH-1715 From: nhusers@googlegroups.com<mailto:nhusers@googlegroups.com> [mailto:nhusers@googlegroups.com<mailto:nhusers@googlegroups.com>] On Behalf Of Fabio Maulo Sent: den 25 mars 2009 14:09 To: nhusers@googlegroups.com<mailto:nhusers@googlegroups.com> Subject: [nhusers] Re: TimeSpan >24h or <0h JIRA please with a very little NUnit test (see the "Welcome" on our JIRA home page if you never sent a NUnit test to us). Do it ASAP 2009/03/29 is the day of Alpha2 2009/3/25 Roger Kratz <roger.kr...@teleopti.com<mailto:roger.kr...@teleopti.com>> Hi The new (NH-1657) TimeSpan type gives wrong result if timespan value is more than 24 hours or negative (I'm using sql2005 dialect, not mention any type in mapping file -> datetime in db). Am I suppose to use TimeSpanInt64 to get this to work or is it a bug? Should I JIRA this? IMHO - If it's by design to not work outside 0-24h, I would prefer an exception rather than wrong result. /Roger -- Fabio Maulo -- Dario Quintana http://darioquintana.com.ar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com To unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---