NHibernate.HibernateException: Unable to locate persister: A
本文关键字:persister locate Unable HibernateException NHibernate to | 更新日期: 2023-09-27 18:09:00
我得到这个错误:
NHibernate。HibernateException: able to locate persister: ABC.Interfaces.Entities.IUser
这是否意味着映射文件(我使用流利)没有被发现的某种原因?
In my nhibernate。我有以下定义:
public class UserMap : ClassMap<IUser>
{
public UserMap()
{
Id(x => x.Id);
Map(x => x.Username);
Map(x => x.Password);
Map(x => x.Firstname);
Map(x => x.Lastname);
Map(x => x.CreatedDate);
Map(x => x.UpdatedDate);
}
}
有什么问题吗?
或者它与castle windsor没有选择执行有关?
我:
container.Register(Component.For<IUser>().ImplementedBy<User>().LifeStyle.Transient);
看看这篇文章。问题可能出在NH