より複雑なオブジェクトの 2 つのリストを含む複雑なオブジェクトがあります。
最初のオブジェクトは次のとおりです。
public object1 {
public string Name { get; set; }
public virtual ICollection<object2> objects2 { get; set; }
public virtual ICollection<object3> objects3 { get; set; }
}
object2 と object3 は同じで、ID フィールドと Name フィールドがあります。そのような:
public object {
public int ID{ get; set; }
public string Name { get; set; }
}
ID のリスト/配列 (int[] ids) を使用して「object1」のリストを検索し、フィールド「objects2」にすべての配列 o2_ids と「objects3」にすべての配列 o3_ids (それぞれが int[ ]))。