How to map List of anonymous to List of T using AutoMapper?
For example:
class Test{
public string a1{get;set]}
public string a2{get;set;}
}
//....Entity Framework 4.3.1
var t=from z in db select {z.a1,z.a2};
var tmp=AutoMapper.Mapper.DynamicMap<List<Test>>(t);
But tmp always is empty
How to fix it?