views:

54

answers:

1

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 FirstCriterion {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?

+1  A: 

I did build a custom type with the equivalent structure.

DaeMoohn