开发者

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

开发者 https://www.devze.com 2023-01-06 19:45 出处:网络
I would like to have a structure like this: Mapping class int ID {get;set;} IList<KeyValuePair<string,string>> Criteria {get;set;}

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

精彩评论

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