mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 12:03:21 +08:00
update readme
This commit is contained in:
parent
635244786a
commit
1f4903e8c3
@ -125,16 +125,13 @@ fsql.Select<Song>().OrderBy(a => Guid.NewGuid()).Limit(10).ToList();
|
||||
|
||||
```csharp
|
||||
[Transactional]
|
||||
public void Add()
|
||||
{
|
||||
public void Add() {
|
||||
var repo = ioc.GetService<BaseRepository<Tag>>();
|
||||
repo.DbContextOptions.EnableAddOrUpdateNavigateList = true;
|
||||
|
||||
var item = new Tag
|
||||
{
|
||||
var item = new Tag {
|
||||
Name = "testaddsublist",
|
||||
Tags = new[]
|
||||
{
|
||||
Tags = new[] {
|
||||
new Tag { Name = "sub1" },
|
||||
new Tag { Name = "sub2" }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user