NHibernate Truncates Milliseconds when Using DateTime

19 February 2009 18:07

It's even documented, right here.  It's a bit annoying, seeing as it violates the principle of least surprise, but it does make the DateTime type portable across database implementations.  However, if you want to just use your native precision, just declare it as having "Timestamp" type.  Problem solved.  No need to mess around with IUserType or worse.

Technorati Tags:
Comments
No comments posted yet.
Something to add?

Talking sense? Talking rubbish? Something I'm missing? Let me know!

Fields denoted with a "*" are required.

 (will not be displayed)

 
Please add 5 and 2 and type the answer here:

Preview Your Comment