【发布时间】:2023-02-03 00:40:47
【问题描述】:
我有以下#Script(ServiceStack 框架)模板。 我想在我的 dbSelect 中使用参数代码。 这怎么可能?
例子:
<small>Some Label</small><header>{{Code}}</header>
{{ 'select * from TrackingEntity WHERE Barcode = @Barcode' |> to => selectSql }}
{{ selectSql |> dbSelect({Barcode: {Code} }) |> htmlDump({ className: 'table styled-table' }) }}
在这行代码中,我试图将参数传递给 dbSelect 函数。
选择SQL|> dbSelect({条码:{代码}})
【问题讨论】:
标签: c# servicestack