mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-11 02:40:55 +08:00
update
@@ -13,15 +13,13 @@ var repo = fsql.GetRepository<Type>();
|
||||
var type = new Type
|
||||
{
|
||||
name = "c#",
|
||||
Topics = new List<Topic>(new[] {
|
||||
new Topic
|
||||
{
|
||||
...
|
||||
}
|
||||
Topics = new List<Topic>(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
|
||||
|
||||
8
联级保存.md
8
联级保存.md
@@ -13,11 +13,9 @@ var repo = fsql.GetRepository<Type>();
|
||||
var type = new Type
|
||||
{
|
||||
name = "c#",
|
||||
Topics = new List<Topic>(new[] {
|
||||
new Topic
|
||||
{
|
||||
...
|
||||
}
|
||||
Topics = new List<Topic>(new[]
|
||||
{
|
||||
new Topic { ... }
|
||||
})
|
||||
};
|
||||
repo.Insert(type);
|
||||
|
||||
Reference in New Issue
Block a user