Inheritance mapping<http://www.nhforge.org/doc/nh/en/index.html#inheritance>in
the docs is worth a read. If you want separate tables, then
joined-subclass is the way, yeah.

On Fri, Jun 5, 2009 at 9:45 AM, Niclas Pehrsson <[email protected]> wrote:

>
> Thanks I will try that.
>
> Do you have any link with an good example? :)
>
> Shall I use Joined-subclass if I dont want to have article's and
> articlecategories in the same table?
>
> On 5 Juni, 10:31, James Gregory <[email protected]> wrote:
> > Using subclasses. Map IArticleCatalogItem as the class, then each
> > implementation as a subclass.
> >
> > On Fri, Jun 5, 2009 at 9:22 AM, Niclas Pehrsson <[email protected]>
> wrote:
> >
> > > 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?
> >
>

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