diff --git a/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/UnitTest/UinitUpdateNavOneToOne.cs b/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/UnitTest/UinitUpdateNavOneToOne.cs index d7d40393e..6dd5e5921 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/UnitTest/UinitUpdateNavOneToOne.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UserTestCases/UnitTest/UinitUpdateNavOneToOne.cs @@ -16,6 +16,10 @@ namespace OrmTest { db.CodeFirst.InitTables(); } + else + { + db.DbMaintenance.TruncateTable(); + } //建表 if (!db.DbMaintenance.IsAnyTable("ShopDataTest", false)) { @@ -50,7 +54,7 @@ namespace OrmTest userData.ShopId = 0; userData.ShopDataTest = new ShopDataTest(); userData.ShopDataTest.Name = "店铺名3"; - userData.ShopDataTest.GuId = 4; + userData.ShopDataTest.GuId = 0; userData.ShopDataTest.AddressTest = new AddressTest() { Name = "地址名称",