字符串类型参数
2019-04-11 17:30 更新
描述
var sql = "SELECT * FROM Invoice WHERE Code = @Code;";
using (var connection = My.ConnectionFactory())
{
connection.Open();
var invoices = connection.Query<Invoice>(sql, new {Code = new DbString {Value = "Invoice_1", IsFixedLength = false, Length = 9, IsAnsi = true}}).ToList();
My.Result.Show(invoices);
}
以上内容是否对您有帮助:
← 列表类型参数
更多建议: