mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update Demo
This commit is contained in:
parent
1ed824922a
commit
08fd0e20f2
@ -141,6 +141,7 @@
|
|||||||
<Compile Include="OldTest\UnitTest\Setting\MapTable.cs" />
|
<Compile Include="OldTest\UnitTest\Setting\MapTable.cs" />
|
||||||
<Compile Include="OldTest\UnitTest\Update.cs" />
|
<Compile Include="OldTest\UnitTest\Update.cs" />
|
||||||
<Compile Include="UnitTest\UAdo.cs" />
|
<Compile Include="UnitTest\UAdo.cs" />
|
||||||
|
<Compile Include="UnitTest\UQueryable.cs" />
|
||||||
<Compile Include="UnitTest\UQueryableAsync.cs" />
|
<Compile Include="UnitTest\UQueryableAsync.cs" />
|
||||||
<Compile Include="UnitTest\UThread3.cs" />
|
<Compile Include="UnitTest\UThread3.cs" />
|
||||||
<Compile Include="UnitTest\UThread2.cs" />
|
<Compile Include="UnitTest\UThread2.cs" />
|
||||||
|
@ -27,6 +27,7 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
Json();
|
Json();
|
||||||
Ado();
|
Ado();
|
||||||
|
Queryable();
|
||||||
QueryableAsync();
|
QueryableAsync();
|
||||||
Thread();
|
Thread();
|
||||||
Thread2();
|
Thread2();
|
||||||
|
21
Src/Asp.Net/SqlServerTest/UnitTest/UQueryable.cs
Normal file
21
Src/Asp.Net/SqlServerTest/UnitTest/UQueryable.cs
Normal 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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user