Update Demo

This commit is contained in:
sunkaixuan 2019-01-12 18:21:53 +08:00
parent 33cf668378
commit 1d69d62918
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ namespace OrmTest.Demo
{
var db = GetInstance();
db.Insertable(new CMStudent() { SchoolId = 1, Name = "xx1" }).ExecuteCommand();
var students = db.Queryable<CMStudent>().ToList();
var students = db.Queryable<CMStudent>().Take(10).ToList();
if (students != null)
{
foreach (var item in students)
@ -67,7 +67,7 @@ namespace OrmTest.Demo
{
get
{
return base.CreateMapping<CMSchool>().Where(it => it.Id == this.SchoolId).ToList();
return base.CreateMapping<CMSchool>().Where(it => it.Id == this.SchoolId).Take(2).ToList();
}
}
}

View File

@ -39,7 +39,7 @@ namespace OrmTest
new DataTest(1).Init();
new EnumTest(1).Init();
/***Performance Test***/
new SqlSugarPerformance(100).Select();
new SqlSugarPerformance(10).Select();
/***Demo***/
Demo.Insert.Init();