diff --git a/Src/Asp.NetCore2/Net7Test/NET7Test/NET7Test/Program.cs b/Src/Asp.NetCore2/Net7Test/NET7Test/NET7Test/Program.cs index 50900b3ac..0e3827939 100644 --- a/Src/Asp.NetCore2/Net7Test/NET7Test/NET7Test/Program.cs +++ b/Src/Asp.NetCore2/Net7Test/NET7Test/NET7Test/Program.cs @@ -91,7 +91,11 @@ static void ServerTest() var list = sqlugar.Queryable().OrderByDescending(it => it.dateOnly).ToList(); - + var list222 = sqlugar.Queryable() + .Select(it=>new { + x=it.dateOnly, + y=it.dateOnly.Month + }).ToList(); var d1 = new UnitDate01231().dateOnly; var d2 = new UnitDate01231().timeOnly;