mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 DynamicFilterCustom 参数 object sender;#1113
This commit is contained in:
@ -2546,7 +2546,7 @@ WHERE (((name,no) in (('testname01','testname01')) OR not((a.""no"") LIKE '%test
|
||||
public class DynamicFilterMyCustom
|
||||
{
|
||||
[DynamicFilterCustom]
|
||||
public static string MyRawSql(string value) => value;
|
||||
public static string MyRawSql(object sender, string value) => value;
|
||||
|
||||
public static string TupleIn(string value)
|
||||
{
|
||||
|
@ -2664,7 +2664,7 @@ WHERE ((not((a.""name"") LIKE '%testname01') OR not((a.""no"") LIKE '%testname01
|
||||
""Value"" : ""testname01""
|
||||
},
|
||||
{
|
||||
""Field"" : ""MyRawSql FreeSql.Tests.Sqlite.DynamicFilterMyCustom,FreeSql.Tests"",
|
||||
""Field"" : ""MyRawSql2 FreeSql.Tests.Sqlite.DynamicFilterMyCustom,FreeSql.Tests"",
|
||||
""Operator"" : ""Custom"",
|
||||
""Value"" : ""(id,status) in (('testname01','finished'))""
|
||||
},
|
||||
@ -2689,7 +2689,10 @@ WHERE (((name,no) in (('testname01','testname01')) OR not((a.""no"") LIKE '%test
|
||||
public class DynamicFilterMyCustom
|
||||
{
|
||||
[DynamicFilterCustom]
|
||||
public static string MyRawSql(string value) => value;
|
||||
public static string MyRawSql(object sender, string value) => value;
|
||||
|
||||
[DynamicFilterCustom]
|
||||
public static string MyRawSql2(string value) => value;
|
||||
|
||||
public static string TupleIn(string value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user