I forgot to mention, this is with 1.0 RTM
On Aug 31, 4:16 am, Fost andy <[email protected]> wrote:
> Given an IDictionary<SomeEntity, int> Foo; I'm basically trying to
> produce this hbm.xml in fluent:
>
> <map name="Foo">
> <key column="..." />
> <index-many-to-many class="SomeEntity" column="SomeEntity_Id"/>
> <element column="Value" type="int"/>
> </map>
>
> After some experimentation I seem to be able to produce mappings for
> an IDictionary<SomeEntity, SomeEntity>:
>
> // produce a <map> with <index-many-to-many> and <many-to-many>,
> HasManyToMany(x => x.Foo)
> .AsMap
> .AsTernaryAssociation("Key2", "Value")
> ;
>
> And for an IDictionary<int, int>:
>
> // produce a <map> with <index> and <element>HasMany(x => x.Foo)
> .AsMap<int>
> .Element("Value")
> ;
>
> I even seem to be able to use AsIndexedCollection to produce <map>
> with <index> and <many-to-many> (although none that NHibernate will
> accept)
>
> But I can't figure out how to produce a <map> with <index-many-to-
> many> and <element>. Can someone provide some tips?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---