mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
add test code
This commit is contained in:
@ -54,6 +54,8 @@ namespace FreeSql.Tests.MySql
|
||||
var t5 = g.mysql.Ado.Query<dynamic>("select * from song");
|
||||
|
||||
var t6 = g.mysql.Ado.Query<xxx>("select * from song where id in ?ids", new { ids = new[] { 1, 2, 3 } });
|
||||
|
||||
var t7 = g.mysql.Ado.Query<xxx>("select * from song where title in ?titles", new { titles = new[] { "title1", "title2", "title2" } });
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -135,6 +135,9 @@ namespace FreeSql.Tests.SqlServer
|
||||
new Dictionary<string, object> { ["id"] = 1 });
|
||||
|
||||
var t6 = g.sqlserver.Ado.Query<xxx>("select * from xxx where id in @ids", new { ids = new[] { 1, 2, 3 } });
|
||||
|
||||
var t7 = g.sqlserver.Ado.Query<xxx>("select * from xxx where title in @titles", new { titles = new[] { "title1", "title2", "title2" } });
|
||||
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
Reference in New Issue
Block a user