views:

11

answers:

0

hi, i've to get rows from a table CBR_MissioniGruppi that have id in gruppi list.

I've tried with this, but doesn't work.

List<int> gruppi = new List<int>() { 1, 2 };
        foreach (CBR_MissioniGruppi mg in db.CBR_MissioniGruppi.Where(p => gruppi.Contains(p.GruppoID)))

How can i do it?

thanks