I have filled List<Object1>
Object 1 contain 2 fields (int id & string name)
Also i Have IEnumerable<Object2>
Generated by linq2sql. With fields (id, name)
i need to get items from List<Object1>
which Id's are absent in IEnumerable<Object2>
.
by Key Field = id
(like where in in sql..)
i used code like
IEnumerable Object2
List<Object1> excepted = Object2.Where(t => obj1.Contains == t.Id);
Thank you!