I have this List of IDS
var profileID=(PMSdb.Tbl1.Where(x=>x.ID==_ID)).ToList();
and I want to Get from database based on this List so I used
var Profiles = new List<Profile>(crmcontext.Profile.Where(x=>profileIDs.Contains(x.Profile_ID)));
it works well but
it will get all Id's which contains this value not the exact value
for example
if my ProfileIDs
list is as
[1,2,5]
and profile Table ID is
[12,1,25,112]
it will get all of them not only ID=1
how can I get this?