首页 > 代码库 > 错误“Could not find a setter for property '__hibernate_sort_row' in class 'MF.NHibernate.Domain.Entity.tb_articles'”解决办法

错误“Could not find a setter for property '__hibernate_sort_row' in class 'MF.NHibernate.Domain.Entity.tb_articles'”解决办法

在NHibernate分页中出现下面的错误 
Could not find a setter for property ‘__hibernate_sort_row‘ in class ‘MF.NHibernate.Domain.Entity.tb_articles‘
解决办法,在相应的持久化类中添加下面属性便可分页成功。

      public virtual long __hibernate_sort_row
        {
            set;
            get;
        }

错误“Could not find a setter for property '__hibernate_sort_row' in class 'MF.NHibernate.Domain.Entity.tb_articles'”解决办法