现在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