mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update Demo
This commit is contained in:
parent
33cf668378
commit
1d69d62918
@ -13,7 +13,7 @@ namespace OrmTest.Demo
|
|||||||
{
|
{
|
||||||
var db = GetInstance();
|
var db = GetInstance();
|
||||||
db.Insertable(new CMStudent() { SchoolId = 1, Name = "xx1" }).ExecuteCommand();
|
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)
|
if (students != null)
|
||||||
{
|
{
|
||||||
foreach (var item in students)
|
foreach (var item in students)
|
||||||
@ -67,7 +67,7 @@ namespace OrmTest.Demo
|
|||||||
{
|
{
|
||||||
get
|
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 DataTest(1).Init();
|
||||||
new EnumTest(1).Init();
|
new EnumTest(1).Init();
|
||||||
/***Performance Test***/
|
/***Performance Test***/
|
||||||
new SqlSugarPerformance(100).Select();
|
new SqlSugarPerformance(10).Select();
|
||||||
|
|
||||||
/***Demo***/
|
/***Demo***/
|
||||||
Demo.Insert.Init();
|
Demo.Insert.Init();
|
||||||
|
Loading…
Reference in New Issue
Block a user