[英]'NHibernate.Mapping.Property' is not an attribute class
此代码无法编译,并出现错误“ NHibernate.Mapping.Property”不是属性类 。 有什么想法吗?
using System;
using System.Linq;
using DevExpress.Xpo;
using System.Collections.Generic;
using System.Text;
using NHibernate.Mapping;
namespace Test {
public class User : IdentityItem {
public string email;
public string password;
public string displayname;
[NHibernate.Mapping.Property(IsLazy = true, IsOptional = true, Name = "admin_notes")]
public string admin_notes { get; set; }
}
}
提前致谢 :-)
这是因为“ NHibernate.Mapping.Property”不是属性类。
请改用“ NHibernate.Mapping.Attributes.Property”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.