Hi I'm trying to map a one-many parent-child relationship in NHibernate using XML mapping. Easy enough if the parent class instances store the collection of children in a list, but I want to use a dictionary. Can anyone point me to an example that shows how to set up this mapping in XML?
In other words I want my parent class to look like this
public class Parent {
IDictionary<string, Child> children; // key should be Child.Name
}
It's a standard primary key-foreign key relationship in the database. The Child table has Name column which should be mapped to the dictionary key.
Thanks