public static object ToAnonymousObject(this JoinField field) =>
 field.Match <object>(p => Infer.RelationName(p.Name), c => new
 {
     parent = Infer.Id(c.ParentId),
     name   = Infer.RelationName(c.Name)
 });
Beispiel #2
0
 public static object ToAnonymousObject(this JoinField field) =>
 field.Match <object>(p => TestClient.Default.Infer.RelationName(p.Name), c => new
 {
     parent = TestClient.Default.Infer.Id(c.Parent),
     name   = TestClient.Default.Infer.RelationName(c.Name)
 });