public void GetMuscles(List<ListItem> selected)
{
int[] arrayOfStrings = new int[selected.Count];
for (int i = 0; i < selected.Count; i++)
{
arrayOfStrings[i] = Convert.ToInt32(selected[i].Value);
}
}
using (var db = new DWSEntities())
{
var muscles = (from m in db.Muscles
where m.MainMusleGroupID. //ISSUE
select new { m.MusleName, m.ID }).Take(40);
}
In where statement I need to use contains but after "." I don't have option to use contains. I tried the same with a non integer value and it appears. I have an integer array and need WHERE IN clause. So is there any other way to do it without contains or how can I use contains with integer values?