mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
- 增加 SqlExt.FindInSet find_in_set 表达式函数解析;
This commit is contained in:
parent
f9a46e3a12
commit
f25e56be58
@ -167,6 +167,18 @@ namespace FreeSql
|
||||
/// <param name="column"></param>
|
||||
/// <returns></returns>
|
||||
public static IGroupConcat GroupConcat(object column) => SqlExtExtensions.GroupConcat(column);
|
||||
/// <summary>
|
||||
/// MySql find_in_set(str, strlist)
|
||||
/// </summary>
|
||||
/// <typeparam name="TValue"></typeparam>
|
||||
/// <param name="str"></param>
|
||||
/// <param name="strlist"></param>
|
||||
/// <returns></returns>
|
||||
public static int FindInSet<TValue>(TValue str, string strlist)
|
||||
{
|
||||
expContext.Value.Result = $"find_in_set({expContext.Value.ParsedContent["str"]}, {expContext.Value.ParsedContent["strlist"]})";
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PostgreSQL string_agg(.., ..)
|
||||
|
Loading…
x
Reference in New Issue
Block a user