Supporting postgres numeric via UInt64 property

4 views
Skip to first unread message

Michael W Powell

unread,
Jun 16, 2025, 5:17:36 PMJun 16
to Fluent NHibernate
Hello,

I am receiving an exception,

System.AggregateException: 'One or more errors occurred. (The parameter type DbType.UInt64 isn't supported by PostgreSQL or Npgsql)'

Best I can figure, I may need to introduce at least a dialect registration mapping whatever integral type (in this case ulong, sometimes ulong?, nullable), to underlying postgres numeric domain.

In EF terms, I think this is mapped by the currently available Npgsql packages. However, in NH terms, I do not think that IUserType exists (yet).

Am I correct in that understanding?

Best,

Michael W. Powell
Reply all
Reply to author
Forward
0 new messages