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
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/castle-project-users/-/jLcon6chKQYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.