I need to save the catalogItem and after save the product, in this way
one id or will be a product or a category.

[]'s

On Sep 22, 7:58 am, Fabio Maulo <[email protected]> wrote:
> which strategy you want use to represent the persistence of CatalogItem
> hierarchy ?
>
> On Tue, Sep 21, 2010 at 11:45 PM, Stupied4ever <[email protected]>wrote:
>
>
>
>
>
>
>
>
>
> > Please somebody can help-me with this entities mapping ?? I am using
> > Fluent, but i cant understand how to do cause i need to create 1st the
> > Catalog item and after the product or the category.
>
> > I have 3 tables, Product, Category and CatalogItem, and product and
> > categories shares the CatalogItem ID.
>
> >  public abstract class EntityBase
> >  {
> >        public virtual Int64 Id { get; protected set; }
> >  }
>
> > public class CatalogItem:EntityBase
> > {
> >        public virtual string DisplayName { get; set; }
> >        public virtual double ListPrice { get; set; }
> > }
>
> > public class Product : CatalogItem
> > {
> >        public virtual int Quantity { get; set; }
> >        public virtual int ExtraQuantity { get; set; }
> > }
>
> > public class Category:CatalogItem
> > {
> >      public virtual int CategoryName { get; set; }
> > }
>
> > --
> > 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]<nhusers%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> 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