mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 调整 增加支持 OneToOne 级联保存,EnableAddOrUpdateNavigateList 改名为 EnableAddOrUpdateNavigate;
This commit is contained in:
@ -185,7 +185,7 @@ namespace FreeSql.Tests.Odbc.Default
|
||||
|
||||
g.odbc.Delete<District>().Where("1=1").ExecuteAffrows();
|
||||
var repo = g.odbc.GetRepository<District>();
|
||||
repo.DbContextOptions.EnableAddOrUpdateNavigateList = true;
|
||||
repo.DbContextOptions.EnableAddOrUpdateNavigate = true;
|
||||
repo.Insert(new District
|
||||
{
|
||||
Code = "001",
|
||||
@ -1517,7 +1517,7 @@ WHERE (((cast(a.[Id] as nvarchar)) in (SELECT b.[Title]
|
||||
var fsql = g.odbc;
|
||||
fsql.Delete<BaseDistrict>().Where("1=1").ExecuteAffrows();
|
||||
var repo = fsql.GetRepository<VM_District_Child>();
|
||||
repo.DbContextOptions.EnableAddOrUpdateNavigateList = true;
|
||||
repo.DbContextOptions.EnableAddOrUpdateNavigate = true;
|
||||
repo.DbContextOptions.NoneParameter = true;
|
||||
repo.Insert(new VM_District_Child
|
||||
{
|
||||
|
Reference in New Issue
Block a user