LINQ to Entities 无法识别方法 'System.String ToBase64String(Byte[])' 方法,并且此方法无法转换为存储表达式。
var activityList = (from item in committeeMemberList
let committee = db.Committee.FirstOrDefault(x => x.Committee_Id == item.Committee_Id)
let contact = db.Contacts.FirstOrDefault(x => x.Contact_Id == item.Contact_Id)
select new Activity
{
Id = Convert.ToBase64String(item.Committee_Member_SPE_Id),
Name = committee.Committee_Name,
...
...
}).ToList();