Skip to content

Commit 6677b0a

Browse files
committed
Handle inline parameters (partially) in toFragmentExpr.
1 parent 6dfb257 commit 6677b0a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Rezoom.SQL.Provider/TypeGeneration.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ let private toFragmentExpr (fragment : CommandFragment) =
3838
| LocalName n -> <@@ LocalName (%%Quotations.Expr.Value(n)) @@>
3939
| CommandText t -> <@@ CommandText (%%Quotations.Expr.Value(t)) @@>
4040
| Parameter i -> <@@ Parameter (%%Quotations.Expr.Value(i)) @@>
41+
| InlineParameter (dbType, o) ->
42+
// won't work with complex types so watch out
43+
<@@ InlineParameter (%%Quotations.Expr.Value(dbType), %%Quotations.Expr.Value(o)) @@>
4144
| Whitespace -> <@@ Whitespace @@>
4245
| LineBreak -> <@@ LineBreak @@>
4346
| Indent -> <@@ Indent @@>

0 commit comments

Comments
 (0)