update

2881099
2022-05-05 08:52:18 +08:00
parent ccfa1981a9
commit e1cd7040b1
2 changed files with 7 additions and 11 deletions

@@ -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

@@ -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);