using System.Collections.Generic;
public int Id { get; set; }
public List<ObjectB> ObjectBs { get; set; }
public int Id { get; set; }
public string Name { get; set; }
public int ObjectAId { get; set; }
public ObjectA ObjectA { get; set; }
public static void Main()
List<ObjectA> As = [a1, a2];
foreach (var x in result)
Console.WriteLine($"{x.b.Id} {x.a.Id}");