From 83dc8987b7ac05224383aa729144f9509df625ba Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 20 Oct 2022 09:02:58 +0800 Subject: [PATCH] add unit test --- Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs index d993c14e0..4eae459d3 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom012.cs @@ -86,6 +86,11 @@ namespace OrmTest .Where(it => SqlFunc.Exists(it.SchoolA.School_Name, conditionalModels)) .ToList(); + + List conditionalModels2 = new List(); + var list2121 = db.Queryable() + .Where(it => SqlFunc.Exists(it.SchoolA.School_Name, conditionalModels2)) + .ToList(); Check.Exception(string.Join(",", list22.Select(it => it.StudentId)) != string.Join(",", list33.Select(it => it.StudentId)), "unit error");