How to map uint in NHibernate with SQL Server 2005

前端 未结 4 2017
生来不讨喜
生来不讨喜 2021-01-19 01:42

I have a property of type uint on my entity. Something like:

public class Enity
{
   public uint Count {get;set;}
}

When I try to persist t

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-19 01:54

    The cleanest, most official solution would probably be to write a user type.

    Take an example, like this one and adapt it. If you have many uint's, it is worth to have a user type.

    
    

提交回复
热议问题