I am running ServiceStack.OrmLite using MS SQL Server. I would like to run raw SQL against the database, but the source documentation contains a description of how to do this only with the SELECT statement. This is not enough for me.
I cannot find a way to run anything as simple as this:
UPDATE table1 SET column1 = 'value1' WHERE column2 = value2
Usage, for example:
var two = db.Update(@"UPDATE table1 SET column1 = 'value1' WHERE column2 = value2");
Running these expressions using db.Update () or db.Update <> causes fuzzy errors, for example
Incorrect syntax next to the keyword 'UPDATE'.
I would like to use raw sql because my real UPDATE expression uses JOIN.
source share