hi there,
i'm currently experiencing a little problem. I'm using nhibernate with around 40 entities mapped to a sql server database. however, due to performance reasons some operations are done via stored procedure. i have a stored procedure that takes 3 parameters. one entity ID and 2 DateTime's.
now, when i have a Date like the 10th of Dezember 2008, Nhibernate makes
'10.12.2008 00:00:00.000'
out of it. (German Culture) But Sql Server 2008 doesn't interpret it correctly as it swaps Day and Month. When i manually change the datetime text to
'2008-12-10 00:00:00.000'
i didn't encounter this problem when using the session in a "normal" way or when using NHibernate.linq. just when using a sql-query to execute the stored procedure.
is there a way to manually overcome the way NHibernate transforms DateTime objects to their textual representation?