add test code

This commit is contained in:
2881099
2021-02-01 21:53:20 +08:00
parent c39d449054
commit ef4cf46556
3 changed files with 5 additions and 9 deletions

View File

@ -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]

View File

@ -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]