次のような結果セットがあります。
ID (no column name) anotherID
---- ---------------- ----------
1 super 3
1 super 4
3 duper 6
4 really 7
4 really 8
2 つの問題があります。
最初:名前のない列で dapper を使用するにはどうすればよいですか?
2番目:たとえば、別のIDのリストを持つ3つのオブジェクトを取得するような親子関係が必要です:
public class MyObject
{
public int ID
public string Name
public int[] Children
}