mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 18:59:35 +08:00
Add user test case
This commit is contained in:
parent
45df4481d0
commit
7066563b5d
@ -15,6 +15,12 @@ namespace OrmTest
|
||||
db.CodeFirst.InitTables<UnitPerson011, UnitAddress011>();
|
||||
db.DbMaintenance.TruncateTable<UnitPerson011, UnitAddress011>();
|
||||
|
||||
db.Updateable<UnitPerson011>()
|
||||
.SetColumns(it => it.Name, it => it.Name + "")
|
||||
.SetColumns(it => it.AddressId, it => 1)
|
||||
.Where(it=>it.Id==1)
|
||||
.ExecuteCommand();
|
||||
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
AddData(db, "a"+i,"name"+i);
|
||||
|
Loading…
Reference in New Issue
Block a user