标签:
db.UserValidates.Include(a => a.User).Where(uv => u.UserValidates.Contains(uv, c)).ToList();
执行时出现:Linq to Entities不识别方法
解决方式可以使用lambda表达式树
Expression<Func<UserValidate, bool>> express = uv => u.UserValidates.Contains(uv, c); db.UserValidates.Include(a => a.User).Where(express.Compile()).ToList();
标签:
原文地址:http://www.cnblogs.com/goodlucklzq/p/4615599.html