gert wrote:
Have You looked at <map> mapping? AFAIK it is used to map dictionaries.
Gert
Yes, I have. It's quite easy to use the <map> to map a string into an entity,
Code:
<map name="Parameters">
<key/>
<index type="String"/>
<many-to-many class="Parameter"/>
</map>
but what I need is
IDictionary --> IList --> Entity
and not
IDictionary --> Entity
I thought about a <composite-element> or a <index-many-to-many> associated with <map>, but couldn't make it in the way I want...
Thinking about VB.NET, I'd like to access the property in a way like this:
Code:
EntityB = EntityA.Parameters("KEY_NAME)(0)
That is:
EntitiA.Parameters returns an
IDictionary and
EntityA.Parameters("KEY_NAME) returns a
IList and finally
EntityA.Parameters("KEY_NAME)(0) returns the entity
EntityB. Of course, there may exist lot's of casts (CType's) in that expression, but I can cope with that.
I was thinking... Is there a topic in weird associations in this forum? :-)