It's not a FNH issue, it's an NH limitation. That would be a problematic
relationship to map, but the possibility remains that they might be able to
do it in the future. I would recommend submitting a JIRA ticket with that as
a feature request on the nhforge site. If/when the NH team supports it, we
can accomodate it in FNH.

On Wed, Feb 17, 2010 at 8:43 AM, Adrian Hara <adrian.h...@iquestint.com>wrote:

>  Yes, I’ve seen this solution on stackoverflow (
> http://stackoverflow.com/questions/1308072/nhibernate-mapping-a-dictionary-of-lists)
>  but was kind of hoping that the state of the art had advanced in the
> meantime J
>
>
>
> *From:* fluent-nhibernate@googlegroups.com [mailto:
> fluent-nhibern...@googlegroups.com] *On Behalf Of *Hudson Akridge
> *Sent:* Wednesday, February 17, 2010 4:41 PM
> *To:* fluent-nhibernate@googlegroups.com
> *Subject:* Re: [fluent-nhib] Mapping IDictionary<DayOfWeek,
> IList<SomeEntity>>?
>
>
>
> I don't believe you can map a dictionary with a List as the value (two
> dimensional array). You could map IDictionary<DayOfWeek,ChildEntity> though,
> if that's what you're trying to do. If not, what you can do, however, is
> create a class that contains the DayOfWeek and an IList<ChildEntity> and map
> that as a IList/ICollection from ParentEntity.
>
>
>
> public class ChildContainer
>
> {
>
>   public DayOfWeek DayOfWeek{get;set;}
>
>   public IList<ChildEntity> Children {get;set;}
>
> }
>
>
>
> something like that.
>
>
>
> On Wed, Feb 17, 2010 at 8:31 AM, adrianhara <adrian.h...@iquestint.com>
> wrote:
>
> Hi,
>
> Is it possible, using fluentNH (or NH), to map this:
>
>    public class ParentEntity : EntityBase
>    {
>        private IDictionary<DayOfWeek, IList<ChildEntity>> children;
>    }
>
> The EntityBase class defines and Id and stuff, it's the dictionary
> mapping that I don't know how to do...
>
> Thanks,
> Adrian
>
> --
> 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<fluent-nhibernate%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>
>
>
> --
> - Hudson
> http://www.bestguesstheory.com
> http://twitter.com/HudsonAkridge
>
> --
> 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<fluent-nhibernate%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>   --
> 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<fluent-nhibernate%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>



-- 
- Hudson
http://www.bestguesstheory.com
http://twitter.com/HudsonAkridge

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

Reply via email to