我的结果集可能如下所示:
ID (no column name) anotherID
---- ---------------- ----------
1 super 3
1 super 4
3 duper 6
4 really 7
4 really 8
我有两个问题:
第一:如何在没有名称的列中使用 dapper?
第二:我想有一个父子关系,这样我得到3个对象,每个对象都有一个anotherID的列表,例如:
public class MyObject
{
public int ID
public string Name
public int[] Children
}