3

With FSharp.Data.SqlClient, how do you use SqlCommandProvider or SqlProgrammabilityProvider with multiple result sets? For instance if you wanted to get Customer+Orders where your stored procedure returns the customer info in the first result set and the orders in the second result set?

records:

{ OrderId=4; Date=xxx }
{ Name="Dave Smith"; Orders=[...] }

sp:

   Select Name From Customer Where CustomerId=@CustomerId
   Select OrderId, Date From Orders Where CustomerId=@CustomerId
4

1 回答 1

2

FSharp.Data.SqlClient 基于sys.sp_describe_first_result_set。因此,它完全忽略了第二个结果集。

于 2017-05-22T13:35:18.993 回答