- 优化 Oracle IN :ids 值传入 IList 时报错;

This commit is contained in:
2881099
2022-08-02 13:45:05 +08:00
parent 034b4735f4
commit 66e6f39086
4 changed files with 88 additions and 75 deletions

View File

@ -1,5 +1,6 @@
using FreeSql.DataAnnotations;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using Xunit;
namespace FreeSql.Tests.Oracle
@ -55,6 +56,7 @@ namespace FreeSql.Tests.Oracle
var t5 = g.oracle.Ado.Query<dynamic>("select * from \"TB_TOPIC\"");
var t6 = g.oracle.Ado.Query<xxx>("select * from TB_TOPIC where id in :ids", new { ids = new[] { 1, 2, 3 } });
var t7 = g.oracle.Ado.Query<xxx>("select * from TB_TOPIC where id in :ids", new { ids = new List<int>(new[] { 1, 2, 3 }) });
}
[Fact]