5
Answers

Error - Only arguments that can be evaluated on the client are support

Ramco Ramco

Ramco Ramco

1y
779
1

Hi

  I am getting error on below code - Only arguments that can be evaluated on the client are supported for the String.Contains method.

LMSDBDataContext context = new LMSDBDataContext();
                List<View_Recommendation> Result = (from t in context.View_Recommendations
                              where (StudentCollection.Length > 0 ? StudentCollection.Contains(t.StudentID.ToString()) : 1 == 1)
                              select t).ToList();

Thanks

Answers (5)