mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
## v0.12.12 #150
This commit is contained in:
@ -26,10 +26,21 @@ namespace FreeSql.Tests
|
||||
g.sqlite.CodeFirst.SyncStructure<Tag>();
|
||||
g.sqlite.CodeFirst.SyncStructure<Song>();
|
||||
|
||||
var test150_01 = g.sqlite.GetRepository<Tag>()
|
||||
.Select.From<Tag>((s, b) => s.InnerJoin(a => a.Id == b.Id))
|
||||
.ToList((a, b) => new
|
||||
{
|
||||
a.Id,
|
||||
a.Name,
|
||||
id2 = b.Id,
|
||||
name2 = b.Name
|
||||
});
|
||||
|
||||
|
||||
using (var ctx = g.sqlite.CreateDbContext())
|
||||
{
|
||||
|
||||
var test150 = ctx.Set<Tag>()
|
||||
var test150_02 = ctx.Set<Tag>()
|
||||
.Select.From<Tag>((s, b) => s.InnerJoin(a => a.Id == b.Id))
|
||||
.ToList((a, b) => new
|
||||
{
|
||||
|
Reference in New Issue
Block a user