We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3247cbd commit 652a014Copy full SHA for 652a014
src/SqlClient.Tests/TVPTests.fs
@@ -72,6 +72,13 @@ let SprocTupleValue() =
72
let actual = cmd.Execute(p).Value
73
Assert.Equal((1, Some "monkey"), actual)
74
75
+[<Fact>]
76
+let ``SprocTupleValue works with empty table``() =
77
+ let cmd = new TableValuedSprocTuple()
78
+ let p = []
79
+ let actual = cmd.Execute(p)
80
+ Assert.Equal(None, actual)
81
+
82
type TableValuedTupleWithOptionalParams = SqlCommandProvider<"exec Person.myProc @x", ConnectionStrings.AdventureWorksNamed, AllParametersOptional = true>
83
[<Fact>]
84
let TableValuedTupleWithOptionalParams() =
0 commit comments