Update demo

This commit is contained in:
sunkaixuan 2022-09-05 13:54:43 +08:00
parent fb1269eba4
commit acf5e68a87

View File

@ -144,7 +144,7 @@ namespace OrmTest
var db = GetInstance();
//Creater Table
db.CodeFirst.InitTables(typeof(Tree));
db.DbMaintenance.TruncateTable("tree");
db.DbMaintenance.TruncateTable("Tree");
db.Insertable(new Tree() { Id = 1, Name = "root" }).ExecuteCommand();
db.Insertable(new Tree() { Id = 11, Name = "child1",ParentId=1 }).ExecuteCommand();
db.Insertable(new Tree() { Id = 12, Name = "child2",ParentId=1 }).ExecuteCommand();