1
Answer

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

Ramco Ramco

Ramco Ramco

1y
457
1

Hi

  On below code i am getting error - Only arguments that can be evaluated on the client are supported for the string.contains method

Value in Group is "Group 2A , Group 2A(i)". I want all those records which have Groupname Group 2A , Group 2A(i)

public List<Group> GetMentorList(string Group)
        {
            List<Group> Result = (from t in context.Groups
                                  where t.IsActive == true
                                        && Group.Contains(t.GroupName.ToString())
                                  select t).ToList();
            return Result;
        }
Answers (1)