From 18630e3be65635235083c3628fa9b64e97746547 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 13 Oct 2022 11:57:38 +0800 Subject: [PATCH] Update oracle demo --- Src/Asp.NetCore2/OracleTest/Demo/Demo1_Queryable.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/Asp.NetCore2/OracleTest/Demo/Demo1_Queryable.cs b/Src/Asp.NetCore2/OracleTest/Demo/Demo1_Queryable.cs index 6a02e2550..05f4e0996 100644 --- a/Src/Asp.NetCore2/OracleTest/Demo/Demo1_Queryable.cs +++ b/Src/Asp.NetCore2/OracleTest/Demo/Demo1_Queryable.cs @@ -31,6 +31,12 @@ namespace OrmTest var db = GetInstance(); var dbTime = db.GetDate(); var getAll = db.Queryable().ToList(); + var getpage = db.Queryable().ToPageList(0, 5); + var getpage2 = db.Queryable().ToOffsetPage(0, 5); + int count = 0; + var getpage3 = db.Queryable().ToOffsetPage(0, 5, ref count); + RefAsync count2 = 0; + var getpage4 = db.Queryable().ToOffsetPageAsync(0, 5, count2).GetAwaiter().GetResult(); var getOrderBy = db.Queryable().OrderBy(it => it.Name,OrderByType.Desc).ToList(); var getOrderBy2 = db.Queryable().OrderBy(it => it.Id).OrderBy(it => it.Name, OrderByType.Desc).ToList(); var getOrderBy3 = db.Queryable().OrderBy(it =>new { it.Name,it.Id}).ToList();