From 0ac3e83c4ce4b16859728f51442f390ad2dd798d Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 23 Oct 2022 13:58:46 +0800 Subject: [PATCH] Add unit test --- Src/Asp.Net/SqlServerTest/UnitTest/UCustom01.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom01.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom01.cs index 03d59c80f..cb4edc486 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom01.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom01.cs @@ -93,6 +93,12 @@ namespace OrmTest .SetColumns(x => new Order() { Name = x.Name + "a" }) .Where(z => z.Id == 1) .ExecuteCommand(); + var ids = new string[] { "a", "c" }; + for (int i = 0; i < 2; i++) + { + db.Queryable().Where(z => ids[i] == z.Name).ToList(); + db.Queryable().Select(z => ids[i]).ToList(); + } } public class BoolTest12313