I would like to have a structure like this:
Mapping class
int ID {get;set;}
IList<KeyValuePair<string,string>> Criteria {get;set;}
Criteria class
int ID {get;set;}
int MappingID {get;set;}
string FirstCri开发者_如何学编程terion {get;set;}
string SecondCriterion {get;set;}
(int index {get;set;})
How can I get this keyvaluepair mapped?
I tried with HasMany, but then it tells i reference an unmapped class (KeyValuePair). Should I use the IDictionary interface?
I did build a custom type with the equivalent structure.
精彩评论