Update Demo

This commit is contained in:
sunkaixuan 2019-05-20 16:15:01 +08:00
parent 1ed824922a
commit 08fd0e20f2
3 changed files with 23 additions and 0 deletions

View File

@ -141,6 +141,7 @@
<Compile Include="OldTest\UnitTest\Setting\MapTable.cs" />
<Compile Include="OldTest\UnitTest\Update.cs" />
<Compile Include="UnitTest\UAdo.cs" />
<Compile Include="UnitTest\UQueryable.cs" />
<Compile Include="UnitTest\UQueryableAsync.cs" />
<Compile Include="UnitTest\UThread3.cs" />
<Compile Include="UnitTest\UThread2.cs" />

View File

@ -27,6 +27,7 @@ namespace OrmTest
{
Json();
Ado();
Queryable();
QueryableAsync();
Thread();
Thread2();

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public partial class NewUnitTest
{
public static void Queryable() {
var pageindex = 1;
var pagesize = 10;
var total = 0;
var totalPage = 0;
var list=Db.Queryable<Order>().ToPageList(pageindex, pagesize, ref total, ref totalPage);
}
}
}