各連絡先 (Contact テーブルに保存) に複数の番号 (別のテーブル Contact_Phones に保存) を含めることができる連絡先のリストがあります。
public class Contact{
public int ID {get; set;}
public string First_Name {get; set;}
public string Last_Name {get; set;}
public List<Contact_Phones> Phones {get; set;}
}
public class Contact_Phones{
public int ID {get; set;}
public int Type {get; set;}
public string Phone_No {get; set;}
}
今、Linq C# を使用して同じ phone_no を持つ連絡先を検索し、それらをマージしたいと考えています。