Class Person
{
int ID;
IList<Cat> cats;
}
Class Cat
{
int OwnerId;
}
how to map person cats on nhibernate fluent?
probably stupid question but i cant find the answer..
thank you all.
Class Person
{
int ID;
IList<Cat> cats;
}
Class Cat
{
int OwnerId;
}
how to map person cats on nhibernate fluent?
probably stupid question but i cant find the answer..
thank you all.
How about:
public class PersonMap : ClassMap<Person>
{
Id(p => p.ID);
HasMany(p => p.Cats);
}
Assuming you have a Cats property in there somewhere of course.