It seems that yours InsurerSection is playing a bigger role than that just a simple and plain relation table (imho). Why don't you create a new entity representing the relation between those two entities?
On Dec 17, 10:17 am, Mauricio Scheffer <[email protected]> wrote: > http://stackoverflow.com/questions/1917160/activerecord-many-to-many-... > > On Dec 16, 4:42 pm, Cosmo <[email protected]> wrote: > > > > > I have a many-to-many relationship with surrogate key > > (http://www.castleproject.org/activerecord/documentation/trunk/usersgu......). > > > The classes are: Insurer - InsurerSection - Section. > > InsurerSection has one extra attribute: active : bool. > > > How do I access these bool property? Is it possible to have this > > property contained within the Insurer and Section objects or do I have > > to call something like: > > InsurerSection.FindOne(Expression.Eq("Section", sectionObj)).Active; > > > The best would be to have a reference in Insurer and Section like: > > > Insurer item = new Insurer(); > > item.Active = true; > > > OR > > > Section item = new Section(); > > item.Active = true; > > > Is that possible? What options do I have? > > > Thanks! > > Jakub -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. 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.
