Hello,
I'm using S#arp Architecture. I'm trying to figure out how to get
Fluent NHibernate's automapping feature to generate maps using
SQL2008's datetime2.
At the moment, even though my DB is set to datetime2(0) column types,
if I try to save DateTime.MinValue (01/01/0001), I get an error saying
that SQL is expecting a date past 01/01/1753. My best efforts make it
seem like this is an NHibernate issue. Since datetime2 supports
01/01/0001 to 12/31/9999, and since I'm using NH 2.1.1001, shouldn't I
be able to map this such that dates earlier than 01/01/1753 don't
cause issues?
When I use:
mappings.WriteMappingsTo("myPath")
I get individual hbm.xml files for all of my entities. When I look at
them, my date fields are represented like so:
<property name="ScheduledDate" type="DateTime">
<column name="ScheduledDate" />
</property>
These are created by the AutoPersistenceModelGenerator.
Any help would be appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---