Hi,
I'm stuck with a problem, and I can't find any solution on the internet.
I have a class A, and I would like to map every object of class B (the whole B table then) on a IDictionnay on class A.
The problem is when you try to use the <map> structure, you have to give a <key> which doesn't exist :
so we have a class A:
Code:
public class A_Class
{
IDictionnary<string, B_Class> MyBees;
}
and a class B:
Code:
public class B_Class
{
string Name;
}
So basically, I want every B (all rows in the B table if you prefer) in the dictionnay in class A.
Code:
<map name="MyBees" table="B_Table">
<key column="THIS COLUMN DOESN'T EXIST"></key>
<index column="Name" type="string"></index>
<one-to-many class="B_Class"/>
</map>
How can I achieve that?
Many thanks for your answers,
Antoine.