This commit is contained in:
sunkaixuan
2022-08-04 13:48:01 +08:00
parent 01c0c54e03
commit 941518c6f0
3 changed files with 11 additions and 3 deletions

View File

@@ -184,6 +184,14 @@ namespace OrmTest
})
.ToList();
var test48 = db.Queryable<Order>().Select(it => new
{
count = SqlFunc.RowCount(),
index = SqlFunc.RowNumber(it.Name),
index2 = SqlFunc.RowNumber(it.Id,it.Name)
})
.ToList();
var dr3 = new Dictionary<string, object>();
dr3.Add("Id", 0);
dr3.Add("Name", null);