using System.Collections;
using System.Collections.Generic;
public static void Main()
var profileItems = new Dictionary<string, object>();
profileItems.Add("PropA","123422");
profileItems.Add("PropB","99999");
var config = new MapperConfiguration(map =>
map.CreateMap<DictionaryEntry, TestModel>().ForAllMembers(x => x.MapFrom(s => s.Key))
var mapper = config.CreateMapper();
var dest = mapper.Map<TestModel>(profileItems);
Console.WriteLine("Result:");
Console.WriteLine(dest.PropA);
Console.WriteLine(dest.PropB);
Console.WriteLine(dest.PropC);
Console.WriteLine(dest.PropD);
public string PropA {get;set;}
public string PropB {get;set;}
public string PropC {get;set;}
public string PropD {get;set;}