We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Any idea how to:
UPDATE Foo SET [Bar] = (SELECT FORMAT(id, '00000')) where id IN (@ids)
I.e. a query assigned to the Set of a column.. I have tried all sorts. But need the a func parameter i imagine
The text was updated successfully, but these errors were encountered:
Yes you can use here the UnsafeLiteral to pass raw string
UnsafeLiteral
var query = new Query("Foo") .WhereIn("id", new [] {1, 2}) .AsUpdate(new { Bar = new UnsafeLiteral("SELECT FORMAT(id, '0000')", replaceQuotes: false) });
Check this example on playground
Sorry, something went wrong.
No branches or pull requests
Hi
Any idea how to:
UPDATE Foo SET [Bar] = (SELECT FORMAT(id, '00000')) where id IN (@ids)
I.e. a query assigned to the Set of a column.. I have tried all sorts. But need the a func parameter i imagine
The text was updated successfully, but these errors were encountered: