mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
update
This commit is contained in:
parent
169cf596c0
commit
7ee731c1ad
15
readme.md
15
readme.md
@ -136,6 +136,21 @@ using (var ctx = new SongContext()) {
|
||||
ctx.Songs.RemoveRange(adds.Skip(10).Take(20).ToList());
|
||||
ctx.Songs.Update(adds.Last());
|
||||
|
||||
var tag = new Tag {
|
||||
Name = "testaddsublist",
|
||||
Tags = new[] {
|
||||
new Tag { Name = "sub1" },
|
||||
new Tag { Name = "sub2" },
|
||||
new Tag {
|
||||
Name = "sub3",
|
||||
Tags = new[] {
|
||||
new Tag { Name = "sub3_01" }
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
ctx.Tags.Add(tag);
|
||||
|
||||
await ctx.SaveChangesAsync();
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user