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