Browse Source

Update oracle demo

SqlSugar5
sunkaixuan 2 years ago
parent
commit
18630e3be6
  1. 6
      Src/Asp.NetCore2/OracleTest/Demo/Demo1_Queryable.cs

6
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<Order>().ToList();
var getpage = db.Queryable<Order>().ToPageList(0, 5);
var getpage2 = db.Queryable<Order>().ToOffsetPage(0, 5);
int count = 0;
var getpage3 = db.Queryable<Order>().ToOffsetPage(0, 5, ref count);
RefAsync<int> count2 = 0;
var getpage4 = db.Queryable<Order>().ToOffsetPageAsync(0, 5, count2).GetAwaiter().GetResult();
var getOrderBy = db.Queryable<Order>().OrderBy(it => it.Name,OrderByType.Desc).ToList();
var getOrderBy2 = db.Queryable<Order>().OrderBy(it => it.Id).OrderBy(it => it.Name, OrderByType.Desc).ToList();
var getOrderBy3 = db.Queryable<Order>().OrderBy(it =>new { it.Name,it.Id}).ToList();

Loading…
Cancel
Save