首页 新闻 搜索 专区 学院

NHibernate 3.3.1.4报The following types may not be used as proxies错误

0
[待解决问题]

现在NHibernate不支持private属性了吗?

 

/// <summary>
/// 分类
/// </summary>
public virtual CategoryOne CategoryOne
{
private set { }
get {
if (CategoryTwo == null)
return null;
return CategoryTwo.CategoryOne;
}
}

错误如下

NHibernate.InvalidProxyTypeException: The following types may not be used as proxies:
UltraNuke.Domain.Wealth.RevenueRecord: method set_CategoryOne should be

ultranuke的主页 ultranuke | 菜鸟二级 | 园豆:202
提问于:2013-08-05 19:44
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册