4

Is there any supported way of mapping datetimeoffset the new datatype in SQL 2008 to the System.DateTimeOffset using nhibernate?

2 Answers 2

3

NH 2.1 (or compiling from NHibernate trunk) supports this and more out-of-the-box. Check it out

Sign up to request clarification or add additional context in comments.

2 Comments

Link is broken. That domain doesn't currently exist.
This was long time ago! NHibernate project is on Github github.com/nhibernate/nhibernate-core
1

(Assuming google didn't turn of anything) You will probably need to create a simple IUserType to handle this, also I am sure that the NH team would gladly accept it as a patch for everyone to benifit.

Ayende has a good post here on this. He goes though a couple of options to solve his problem so you might want to start from the bottom of the post (not the comments) and go up.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.