Supporting NULL able column

5 views
Skip to first unread message

Michael W Powell

unread,
Jun 2, 2025, 2:56:28 PMJun 2
to Fluent NHibernate
Hello,

How do I define a custom type which supports NULL. Defined as a user domain (ULONG) basically a simple NUMERIC(), so perhaps the NHibernate.SqlTypes.SqlTypeFactory.UInt64 is an appropriate basis, but what to do with the ulong? (csharp language level).

Thank you!

Best,

Michael W. Powell

adrp...@gmail.com

unread,
Jun 3, 2025, 11:41:01 AMJun 3
to Fluent NHibernate

I haven’t used Nhibernate for a while, but I had a similar problem with a custom field, and to do solve it I created a custom user type (class IUserType), these links explain how to do it:

https://stackoverflow.com/questions/242022/nhibernate-mapping-to-custom-types

https://web.archive.org/web/20150214164507/http://blog.miraclespain.com/archive/2008/Mar-18.html

Reply all
Reply to author
Forward
0 new messages