- 修复 v2.3.100 GlobalFilter 在 Repository 失效的 bug;

This commit is contained in:
2881099
2021-03-04 14:21:11 +08:00
parent f11419d0d2
commit afd489c0db
2 changed files with 27 additions and 8 deletions

View File

@ -252,6 +252,19 @@ namespace FreeSql.Tests
[Fact]
public void Test02()
{
g.sqlite.GlobalFilter
.Apply<otot1>("id2", a => a.name == "123");
var sqlo1 = g.sqlite.Select<otot1, otot2, otot3>()
.InnerJoin((a, b, c) => a.id == b.id)
.InnerJoin((a, b, c) => b.id == c.id)
.ToSql();
var sqlo2 = g.sqlite.GetRepository<otot3>()
.Select
.ToSql();
g.sqlite.GlobalFilter
.ApplyOnly<otot1>("id1", a => a.name == "123");