I have always reimplemented my Dictionary properties with lists of a class that represented the data.
I found that implementing a Dictionary property with only a getter, that read the mapped list of classes when accessed the first time, and cached the persisted data for faster subsequent access worked quite well. On Mon, Aug 11, 2014 at 1:23 PM, Michael Powell <mwpowell...@gmail.com> wrote: > Hello, > > I've seen this question asked, and at least attempted, or at the time, > answered. > > I've got the same question. > > I've got a domain object "Formation" with a Dictionary property > mapping TeamRole to an Integer (count). > > So, how to map it, if you please? > > Further, I gather the table(s) involved need to be at least > parent/child, if not a many-to-many type correspondence? > > [formation|fid|name] => *[squad|sid|fid|role|count] > > Yes, no? > > Tell me I do not need to break out "squad" as another domain entity. > In this use case, at any rate, that just seems unnecessary to me. > > I am running against FluentNHibernate 1.4.0.0, NHibernate 3.3.1.4000, > .NET 4.5.x. > > Thank you... > > Best regards, > > Michael Powell > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to fluent-nhibernate+unsubscr...@googlegroups.com. > To post to this group, send email to fluent-nhibernate@googlegroups.com. > Visit this group at http://groups.google.com/group/fluent-nhibernate. > For more options, visit https://groups.google.com/d/optout. > -- http://volatile-minds.blogspot.com -- blog http://www.volatileminds.net -- website -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernate+unsubscr...@googlegroups.com. To post to this group, send email to fluent-nhibernate@googlegroups.com. Visit this group at http://groups.google.com/group/fluent-nhibernate. For more options, visit https://groups.google.com/d/optout.