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 185d5a1 commit ed6ca86Copy full SHA for ed6ca86
src/SqlClient.DesignTime/DesignTime.fs
@@ -588,7 +588,10 @@ type DesignTime private() =
588
if p.Optional
589
then
590
assert(p.Direction = ParameterDirection.Input)
591
- ProvidedParameter(parameterName, parameterType = typedefof<_ option>.MakeGenericType(p.TypeInfo.ClrType))
+ if p.DefaultValue.IsNone then
592
+ ProvidedParameter(parameterName, parameterType = typedefof<_ option>.MakeGenericType(p.TypeInfo.ClrType))
593
+ else
594
+ ProvidedParameter(parameterName, parameterType = typedefof<_ option>.MakeGenericType(p.TypeInfo.ClrType), optionalValue = null)
595
else
596
if p.Direction.HasFlag(ParameterDirection.Output)
597
0 commit comments