mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Sqlite support COLLATE NOCASE
This commit is contained in:
@@ -17,6 +17,15 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public class SqliteMethod : DefaultDbMethod, IDbMethods
|
public class SqliteMethod : DefaultDbMethod, IDbMethods
|
||||||
{
|
{
|
||||||
|
public override string Equals(MethodCallExpressionModel model)
|
||||||
|
{
|
||||||
|
var result= base.Equals(model);
|
||||||
|
if (model.Args.Count == 3&& result.Trim().Last()==')')
|
||||||
|
{
|
||||||
|
result = (" "+result.Trim().TrimEnd(')') + " COLLATE NOCASE ) ");
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
public override string GetStringJoinSelector(string result, string separator)
|
public override string GetStringJoinSelector(string result, string separator)
|
||||||
{
|
{
|
||||||
return $"group_concat({result},'{separator}') ";
|
return $"group_concat({result},'{separator}') ";
|
||||||
|
Reference in New Issue
Block a user