2014-04-17 94 views
3

我一直在使用SqlList()從SP接收結果集,它很方便。ServiceStack.OrmLite從存儲過程中獲取多個結果集

var people = db.SqlList<Person>("EXEC GetRockstarsAged @age", new { "age", 42 }); 

但是我該如何使用這個OrmLite從單個SP中獲取多個結果集? 使用上述方法似乎只檢索第一個結果集。

+1

我不知道OrmLite支持多個結果集。 –

+2

OrmLite支持使用[多個輸出參數](https://github.com/ServiceStack/ServiceStack.OrmLite#stored-procedures-with-output-params)調用SP,但不支持多個結果集,但OrmLite確實包含嵌入式版本的「ServiceStack.OrmLite.Dapper」命名空間中的Dapper。 – mythz

回答

相關問題