class Entry { public int Id {get; set;} public string Name {get; set;} } class Entry2 { public Entry2() { this.Enrties = new HashSet<Entry>(); } public virtual ICollection<Entry> Enrties {get; set;} } List<Entry2> list; // содержит N количество элементов Entry2 How to get Entry elements included in each Entry2? That is, if it is not contained in at least one Entry2, it does not fall into the final collection.