开发者

Fluent NHibernate: How to map an IList<Dictionary<string, string>>

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜