I wanted to pass custom expression to SqlKata
The expected output is:
SELECT DISTINCT(Column1 + ' ' + Column2) FROM Table1
ORDER BY Column1 + ' ' + Column2
I wanted to pass custom expression to SqlKata
The expected output is:
SELECT DISTINCT(Column1 + ' ' + Column2) FROM Table1
ORDER BY Column1 + ' ' + Column2
Copyright © 2021 Jogjafile Inc.
You have to use Raw expressions for cases like this one, something like
Of course be aware of SQL injection.
check https://sqlkata.com/docs/select#raw and https://sqlkata.com/docs/order#orderbyraw