This commit is contained in:
sunkaixuan
2025-04-07 18:57:59 +08:00
parent 6f50ac1b95
commit 05f3209812
4 changed files with 48 additions and 5 deletions

View File

@@ -56,6 +56,15 @@ namespace OrmTest
" it.Name as Name" }
, 10)
.ToListAsync().GetAwaiter().GetResult();
var userInfo5 = db.Queryable<Order>()
.Select("it",
new List<string>()
{ "it.Id as userId",
" {0} as id",
" it.Name as Name" }
, 10)
.InSingleAsync(1).GetAwaiter().GetResult();
}
private static void Test03()