mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update Demo
This commit is contained in:
parent
33cf668378
commit
1d69d62918
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user