How to map an IList<Dictionary<string, string>>

Bogdan Ungureanu's Avatar

Bogdan Ungureanu

07 Jul, 2010 06:42 PM via web

Hi,

I would like to have a structure like this:


Mapping
ID {get;set;}

IList<KeyValuePair<string,string>> Criteria {get;set;}

Criteria
ID{get;set;}
MappingID{get;set;}
FirstCriterion{get;set;}
SecondCriterion{get;set;}
(index{get;set;})

How can I get this keyvaluepair mapped?

  1. 2 Posted by Bogdan Ungureanu on 07 Jul, 2010 07:03 PM

    Bogdan Ungureanu's Avatar

    Should I use the IDictionary interface?

  2. Support Staff 3 Posted by Paul Batum on 18 Jul, 2010 10:32 AM

    Paul Batum's Avatar

    Yes you can map an IDictionary. You want to use the "AsMap" method.

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    What month comes before July?