NHibernate. Map 1-many Relationship to Dictionary -


Hi, I am trying to map a single parent relationship to a NHibernate using XML mapping I am If sufficient parents class examples store the collection of children in the list, but I want to use a dictionary

In other words, I want my parent class to look like this

< P> the public class parents

P>

& nbsp; & Nbsp; & Nbsp; IDictionary & lt; String, hair & gt; children; // should be the key. Child.Name

}

This database has a standard primary key-foreign key connection. In the hair table, there is a name column that should be mapped on the dictionary key.

Thanks

Child.Name can not be both a property and a dictionary key.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -