mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 修复 v2.3.100 GlobalFilter 在 Repository 失效的 bug;
This commit is contained in:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user