ah?
take few minutes, perhaps after a break, and join this your assertions :
- "Whenever I load an instance of A, I would like to load every child B."
- "Table A and Table B are not related in the database." the OO translation
sound as "class A is not related to class B in persistence"
- "There are only a few records in Table B"the OO translation sound as :
there are only few instances of class B
- "and they need to be available to every instance of A for utility
purposes"

That is not a <set> in the mapping but a static collection in your
application.

2009/10/26 Matt Mangold <[email protected]>

>
> Domain Object:
>
> class A
> {
>   public virtual ISet<B> ChildCollection { get; set; }
> }
>
> Whenever I load an instance of A, I would like to load every child B.
> Table A and Table B are not related in the database.  There are only a
> few records in Table B, and they need to be avaialable to every
> instance of A for utility purposes.
>
> It appears that if I want to use a <set>, I have to specify a <key>.
> Is there anotherway to map a <set> without having to specify the <key>?
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to