Hello,
I am reviewing pg, NodaTime, and FNH docs, for mappings supporting Duration, Instant, probably couple of others, but those are the major ones.
As far as I know, Duration maps to pg interval. Generally analog to dotnet TimeSpan.
What is the NH analog for pg timestamp? Generally analoy of dotnet DateTime, DateTimeOffset. Databases are usually created with data types TIMESTAMP WITH TIME ZONE clauses.
In terms of NH PrimitiveType Instant what should we be doing for PrimitiveClass and ReturnedClass? There are no comments there, so it is difficult to say. Best guess is types of TimeSpan and Duration, respectively; or DateTimeOffset and Instant, respectively. Or DateTime, perhaps, rather than DateTimeOffset.
Then how do I teach NH (FNH) how to treat those types at a fundamental level? Or do the maps, types, etc, all get magically reflected into FNH?
As well as comparison with efcore.
Best,
Michael W. Powell