From e1cd7040b1351957bee2a1b59a537aaf3bcff874 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Thu, 5 May 2022 08:52:18 +0800 Subject: [PATCH] update --- Cascade-Saving.md | 10 ++++------ 联级保存.md | 8 +++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Cascade-Saving.md b/Cascade-Saving.md index 8e4c15e..14c61fc 100644 --- a/Cascade-Saving.md +++ b/Cascade-Saving.md @@ -13,15 +13,13 @@ var repo = fsql.GetRepository(); var type = new Type { name = "c#", - Topics = new List(new[] { - new Topic - { - ... - } + Topics = new List(new[] + { + new Topic { ... } }) }; repo.Insert(type); -repo.SaveMany(type, "Topics"); //Manually and completely save topics +repo.SaveMany(type, "Topics"); ////Manually and completely save topics ``` -Savemany only supports onetomany and manytomany navigation properties diff --git a/联级保存.md b/联级保存.md index 37956da..0b7cb03 100644 --- a/联级保存.md +++ b/联级保存.md @@ -13,11 +13,9 @@ var repo = fsql.GetRepository(); var type = new Type { name = "c#", - Topics = new List(new[] { - new Topic - { - ... - } + Topics = new List(new[] + { + new Topic { ... } }) }; repo.Insert(type);