DefaultIfEmpty()的问题 急!!!!!!!!!!!!!
var yy = (from u in dbEntities.user_table
join f in dbEntities.foodp on u.foodId equals f.foodId into uf
from so in uf.DefaultIfEmpty()
select new{
u.id,
sa=(so==null?null:so)
}).ToList();
执行报错:LINQ to Entities 不识别方法“System.Collections.Generic.IEnumerable`1[MvcApplication1.Models.foodp] DefaultIfEmpty[foodp](System.Collections.Generic.IEnumerable`1[MvcApplication1.Models.foodp])”,因此该方法无法转换为存储表达式。