mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-01 00:05:28 +08:00 
			
		
		
		
	add test code
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| using FreeSql.DataAnnotations; | ||||
| using FreeSql.DataAnnotations; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| @@ -79,6 +79,7 @@ namespace FreeSql.Tests.SqliteExpression | ||||
|             var testlinq = select.Where(a => testlinqlist.Contains(a.Int)).ToList(); | ||||
|             var testlinq2list = new string[] { }; | ||||
|             var testlinq2 = g.sqlite.Delete<TableAllType>().Where(a => testlinq2list.Contains(a.String)).ToSql(); | ||||
|             Assert.Equal("DELETE FROM \"tb_alltype\" WHERE (((\"String\") in (NULL)))", testlinq2); | ||||
|  | ||||
|             //in not in | ||||
|             var sql111 = select.Where(a => new[] { 1, 2, 3 }.Contains(a.Int)).ToList(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 2881099
					2881099