On Dec 18, 4:22 am, "Martin Hornagold" <martin.hornag...@marstanit.com> wrote: > In your case you wouldn't need any extra members for the subclasses.
But I still need an Id member in the new classes, correct? i.e. public class LogNormalDistributionResult : DistributionResult { public virtual int Id { get; private set; } } public class ContinDistributionResult : DistributionResult { public virtual int Id { get; private set; } } Or are you saying that the classes can be totally empty? -Tom > Yes lose the SubId. > > > > -----Original Message----- > From: fluent-nhibernate@googlegroups.com > > [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of tbushell > Sent: 17 December 2009 20:10 > To: Fluent NHibernate > Subject: [fluent-nhib] Re: Automapping multiple lists of the same type > in an Entity - possible bug? > > Martin, > > I think I'm starting to get this, except for one thing... > > You've introduced two new classes that inherit from > DistributionResult, but don't show any members for them. What, if > anything, do I put between the braces? > > Also, if it's any help, here's my current implementation of > DistributionResult. (I assume I'll be able to eliminate the SubId > member if I use the new approach?). > > public class DistributionResult > { > public virtual int Id { get; private set; } // Required by > NHibernate > > // NHibernate cannot automap more than one IList of the same > // type in a class. SubId allows us to add a "Where" > override. > // See class DlsAppOverlordExportRunDataMap. > public virtual int SubId { get; private set; } > > public virtual float Value { get; set; } > public virtual float Relative { get; set; } > public virtual float Cumulative { get; set; } > } > > Thanks for your help. > > -Tom > > -- > > You received this message because you are subscribed to the Google > Groups "Fluent NHibernate" group. > To post to this group, send email to fluent-nhibern...@googlegroups.com. > To unsubscribe from this group, send email to > fluent-nhibernate+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/fluent-nhibernate?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.