关于Nhibernate的小疑点!
关于Nhibernate的小问题!!!
private _factory=cfg.BuildSessionFactory();
总报这个错误啊?
Type 'Entity.users ' cannot be specified as a proxy: method get_Id should be virtual
这是为什么啊??
------解决方案--------------------
实体类的属性必须标记为 virtual
private _factory=cfg.BuildSessionFactory();
总报这个错误啊?
Type 'Entity.users ' cannot be specified as a proxy: method get_Id should be virtual
这是为什么啊??
------解决方案--------------------
实体类的属性必须标记为 virtual