if you don't use it in queries (for example to do a query to load all
the classes with an ip address that begin wtih 172) use
type="serializable" (it will be saved in a blob column).

otherwise save as string/varchar, the iusertpe implementation is
simple, for example see this
http://www.lostechies.com/blogs/rhouston/archive/2008/03/23/mapping-strings-to-booleans-using-nhibernate-s-iusertype.aspx

for the convertions ipaddress <---> string
uses ipaddress .ToString()  and IPAddress.Parse

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to