我有一个结果集可能看起来像这样的:小巧玲珑点网“没有列名”
ID (no column name) anotherID
---- ---------------- ----------
1 super 3
1 super 4
3 duper 6
4 really 7
4 really 8
我有2个问题:
第一:我如何使用短小精悍与一个没有名字的列?
二:我想有一个父子关系,使得我得到每3个对象与例如anotherID的列表:
public class MyObject
{
public int ID
public string Name
public int[] Children
}
对不起不能命名列...不是我的数据库存储过程 –
参见:http://stackoverflow.com/questions/11703600/dapper-column-number-rather-column-name –