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

@ -512,14 +512,5 @@
<param name="that"></param> <param name="that"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Microsoft.Extensions.DependencyInjection.FreeSqlRepositoryDependencyInjection.AddFreeRepository(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{FreeSql.FluentDataFilter},System.Reflection.Assembly[])">
<summary>
批量注入 Repository可以参考代码自行调整
</summary>
<param name="services"></param>
<param name="globalDataFilter"></param>
<param name="assemblies"></param>
<returns></returns>
</member>
</members> </members>
</doc> </doc>

View File

@ -54,6 +54,8 @@ namespace FreeSql.Tests.MySql
var t5 = g.mysql.Ado.Query<dynamic>("select * from song"); 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 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] [Fact]

View File

@ -135,6 +135,9 @@ namespace FreeSql.Tests.SqlServer
new Dictionary<string, object> { ["id"] = 1 }); 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 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] [Fact]