Browse Source

Update Demo

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
1d69d62918
  1. 4
      Src/Asp.Net/SqlServerTest/Demos/6_ComplexModel.cs
  2. 2
      Src/Asp.Net/SqlServerTest/Program.cs

4
Src/Asp.Net/SqlServerTest/Demos/6_ComplexModel.cs

@ -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();
}
}
}

2
Src/Asp.Net/SqlServerTest/Program.cs

@ -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…
Cancel
Save