[英]FSharp.Data.SqlClient with multiple result sets
With FSharp.Data.SqlClient , how do you use SqlCommandProvider or SqlProgrammabilityProvider with multiple result sets? 使用FSharp.Data.SqlClient ,如何将SqlCommandProvider或SqlProgrammabilityProvider与多个结果集一起使用? 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: SP:
Select Name From Customer Where CustomerId=@CustomerId
Select OrderId, Date From Orders Where CustomerId=@CustomerId
FSharp.Data.SqlClient is based on sys.sp_describe_first_result_set . FSharp.Data.SqlClient基于sys.sp_describe_first_result_set 。 As such, it ignores second result set completely.
因此,它完全忽略第二个结果集。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.