Checks AST properties to determine if ORDER BY is legal in a CTE context. TOP, OFFSET/LIMIT, or FOR XML make ORDER BY legal inside a CTE.
Reads a node-sql-parser tree. Use SqlDocument.Parse(sql, dialect) (row caps and tail clauses) with the dialect grammar's AllowsOrderByInCTE.
SqlDocument.Parse(sql, dialect)
AllowsOrderByInCTE
Checks AST properties to determine if ORDER BY is legal in a CTE context. TOP, OFFSET/LIMIT, or FOR XML make ORDER BY legal inside a CTE.