skip to Main Content
[NHibernate] DateTime Without Milliseconds, How To Increase Precision

[NHibernate] DateTime without milliseconds, how to increase precision

Software which I was updating into XXI century had database in which every record contains time stamp about insert or latest update.

In NHibernate – DateTime is saved with precision of seconds. “Old” software was saving with precision of milliseconds, it was requirement to hold that precision.

Help came from StackOverflow.

After defining class like that we need to include it to configuration. I use FleuntNHibernate so config look like this:

Back To Top