Problems with NHibernate and DateTime mappings
问题 I'm having trouble with a query where I select records within a given timespan. The column I'm selecting from is of type DATE. I have mapped this column as a DateTime property, and the query works but is slow. The generated query looks like: (provided by NHProfiler) select kifkalende0_.KALENDER_MEDARBEJDER_ID as KALENDER1_119_0_, kifkalende1_.KALENDER_EMNE_ID as KALENDER1_210_1_, kifkalende0_.OPDATERET_TIDSPUNKT as OPDATERET2_119_0_, kifkalende0_.AENDRET as AENDRET119_0_, kifkalende0_