Hi
I have two classes with corresponding tables. User and Group. Each Group can have many members (User). Currently it is mapped like this:
References(x=>x.Members).Cascade.AllDeleteOrphan().blah
and the Group class has a collection for ex.
IList<User> Members{get;set}
What I really want to do is Members to be a collection of Guid but still be able to cascade delete.
And the mapping should look like:
References<User>(x=>x.Members).Cascade.AllDeleteOrphan().blah
IList<Guid> Members{get;set}
The question is how to achieve this with NHibernate, some Custom types? I don't know. Or which classes should I change in fluent nhibernate to do such thing?
PS: Can we skip the question why I want such thing with NHibernate? 10x :)
Best regards.
mynkow