.AsEnumerable()
var material = (from d in db.MaterialEvents.Include("Material").AsEnumerable()
where d.Tag_ID.Value.Equals(deviceGuid)
orderby d.CreateTime descending
select new DbMaterialEventViewModel
{
Description = GetLocationChangeEventDescription(d)
}).ToList();