Fluent NHibernate DateTime UTC
问题 I would like to create a fluent nhibernate mapping to map a DateTime field in a following way: On save - Save the UTC value On read - Adjust to local time zone value What is the best way to achieve this mapping? 回答1: Personally, I would store the date in the object in UTC, then convert within the object when reading/writing. You can then reference the backing field your property uses in the mapping (it's not quite as "fluent" to do it this way but you can use FluentNH to map this). If the UTC