Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 528.2k

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

Jun 13 2023 2:50 PM

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)