Why 'Lambda' is not supported in my LINQ to Entities syntax [duplicate]
问题 This question already has answers here : “The LINQ expression node type 'Invoke' is not supported in LINQ to Entities” - stumped! (4 answers) Closed 6 years ago . I get an error when I try to run the following query in LINQ to Entities: public IEnumerable TestOne2() { var query = this.Context.CmnAddressCities .Join(this.Context.CmnAddressStates, p => p.StateID, q => q.StateID, (p, q) => SelectSearchColumns) .ToList(); return query; } public Expression<Func<CmnAddressCity,CmnAddressState,