Directly is simple... a little bit more complicated using generics
http://fabiomaulo.blogspot.com/2008/10/entity-name-in-action-strongly-typed.html

2009/6/5 Niclas Pehrsson <[email protected]>

>
> Hi Im wondering if this is possible
>
> I have two entities Article and ArticleCategory both implements from
> IArticleCatalogItem
>
> Now I want ArticleCategory to have an collection with
> IArticleCatalogItem.
>
> ArticleCategory has an Add(IArticleCatalogItem item), which sets
> parent and child relations. But how shall I map my two entities and
> the one-to-many relation and Parent relation in ArticleCategory?
>
> >
>


-- 
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