I have a many-to-many relationship with surrogate key (http://
www.castleproject.org/activerecord/documentation/trunk/usersguide/relations/hasandbelongs.html).

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.


Reply via email to