Update demo

This commit is contained in:
sunkaixuan 2024-06-14 20:13:28 +08:00
parent 5c770dc03f
commit 45002882f8

View File

@ -201,7 +201,8 @@ namespace OrmTest
{ {
count = SqlFunc.RowCount(), count = SqlFunc.RowCount(),
index = SqlFunc.RowNumber(it.Name), index = SqlFunc.RowNumber(it.Name),
index2 = SqlFunc.RowNumber(it.Id,it.Name) index2 = SqlFunc.RowNumber(it.Id,it.Name),
index3=GetValue()
}) })
.ToList(); .ToList();
var test49 = db.Queryable<Order>().Select(it => new var test49 = db.Queryable<Order>().Select(it => new
@ -268,6 +269,11 @@ namespace OrmTest
Console.WriteLine("#### Examples End ####"); Console.WriteLine("#### Examples End ####");
} }
private static int GetValue()
{
return 3;
}
private static void ReturnType() private static void ReturnType()
{ {
Console.WriteLine(""); Console.WriteLine("");