mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update Subquery.OrderBy.ToList
This commit is contained in:
parent
e2af66fc07
commit
88afc71378
@ -11,5 +11,15 @@ namespace SqlSugar
|
||||
{
|
||||
public override string SqlTranslationLeft { get { return "["; } }
|
||||
public override string SqlTranslationRight { get { return "]"; } }
|
||||
|
||||
public override string RemoveParentheses(string sql)
|
||||
{
|
||||
if (sql.Contains("ORDER BY"))
|
||||
{
|
||||
sql = $"SELECT * FROM {sql.Replace("(SELECT ", "(SELECT TOP 1000000")} TEMP";
|
||||
}
|
||||
return sql;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user