0

I'm getting this error:

NHibernate.HibernateException: Unable to locate persister: ABC.Interfaces.Entities.IUser

Does this mean the mapping file (I'm using fluent) isn't being found for some reason?

In my nhibernate.data project I have the below definition:

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);
    }
}

What is the problem?

Or does it have to do with castle windsor not picking up the implementation?

I have:

 container.Register(Component.For<IUser>().ImplementedBy<User>().LifeStyle.Transient);
Blankman
  • 259,732
  • 324
  • 769
  • 1,199

1 Answers1

1

Look at this post. It seems that the problem may be in the mapping of IUser in NH

Community
  • 1
  • 1
Iridio
  • 9,213
  • 4
  • 49
  • 71