- 补充 Expression IEnumerable<T>.Contains 的支持,之前只能数组或IList<T>;

This commit is contained in:
28810
2019-04-25 17:28:25 +08:00
parent 169cf596c0
commit 205421f7e0
11 changed files with 64 additions and 55 deletions

View File

@ -15,6 +15,9 @@ namespace FreeSql.Tests.OracleExpression {
[Fact]
public void Array() {
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
var testlinq = select.Where(a => testlinqlist.Contains(a.Int)).ToList();
//in not in
var sql111 = select.Where(a => new[] { 1, 2, 3 }.Contains(a.Int)).ToList();
//var sql112 = select.Where(a => new[] { 1, 2, 3 }.Contains(a.Int) == false).ToList();