The incoming request has too many parameters. The server supports a maximum of 2100 parameters

后端 未结 6 1138
野性不改
野性不改 2020-12-16 10:33

I have this seemingly simple linq-to-sql query that searches some data in several columns; something like this:

List TheTableIDs = list of IDs (s         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-16 11:14

    Changed this query:

    var z = (from b in db.GradeChangeHistories
        where m_list.Contains(b.SessionKey) 
        select b);
    

    To this and it works:

    var z = (from b in db.GradeChangeHistories        
        select b).ToList().Where(x => m_list.Contains(x.SessionKey));
    

提交回复
热议问题