Add unit test

This commit is contained in:
sunkaixuan 2023-11-25 19:20:51 +08:00
parent 4e91703056
commit 86a04186b3

View File

@ -61,6 +61,13 @@ namespace OrmTest
throw new Exception("unit error"); throw new Exception("unit error");
} }
db.UpdateNav(list3)
.Include(x => x.Persons, new SqlSugar.UpdateNavOptions()
{
OneToManyInsertOrUpdate = true,//启用:子表插入或更新模式
IgnoreColumns =new string[] { "AddressId" }
}).ExecuteCommand();
} }
[SqlSugar.SugarTable("UnitPerson0112s22a2")] [SqlSugar.SugarTable("UnitPerson0112s22a2")]
public class UnitPerson011 public class UnitPerson011