From 1d69d62918de8a7eab93075b8bd127f1351acb9e Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 12 Jan 2019 18:21:53 +0800 Subject: [PATCH] Update Demo --- Src/Asp.Net/SqlServerTest/Demos/6_ComplexModel.cs | 4 ++-- Src/Asp.Net/SqlServerTest/Program.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Asp.Net/SqlServerTest/Demos/6_ComplexModel.cs b/Src/Asp.Net/SqlServerTest/Demos/6_ComplexModel.cs index b5eecd86c..c12920909 100644 --- a/Src/Asp.Net/SqlServerTest/Demos/6_ComplexModel.cs +++ b/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().ToList(); + var students = db.Queryable().Take(10).ToList(); if (students != null) { foreach (var item in students) @@ -67,7 +67,7 @@ namespace OrmTest.Demo { get { - return base.CreateMapping().Where(it => it.Id == this.SchoolId).ToList(); + return base.CreateMapping().Where(it => it.Id == this.SchoolId).Take(2).ToList(); } } } diff --git a/Src/Asp.Net/SqlServerTest/Program.cs b/Src/Asp.Net/SqlServerTest/Program.cs index 9e825a4e3..10b29327e 100644 --- a/Src/Asp.Net/SqlServerTest/Program.cs +++ b/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();