FluentNHibernate and SQL Date Generation

So you’d like your SQL entry to have a system generated date/time, eh?

Here is a sample table:

To spare you hours dealing with this error:

What you need to do is to use the following mapping for your date/time columns:

Special thanks to this Stackoverflow thread.

You may also like...