In Entity Framework, I want to see if I can fill a dictionary vs one of the model. In the past I have always map to model object. But I wanted to use a dictionary object to avoid ambiguous because multiple CLR types errors.
var dictionaryFlatFee = new Dictionary<int, decimal?>();
var listOfFees = (from p in db.Pricings
select new dictionaryFlatFee
{
p.Id,
p.Price,
}).AsEnumerable()
.ToList();