I was attempting to do an update as described in the docs:
var db = new MightyOrm(connectionString, "Person", "PersonID");
var p = db.Single(42); // get from Person table by primary key
p.LoyalCustomer = true;
db.Update(p);
But I got this error: Cannot complete UPDATE operation, you must provide a WHERE value (specify 1=1 to affect all rows)
Looking at the Update methods, there seems to be no parameter for where .
Digging further into the Issues here lead me to this closed issue about UpdateUsing which seems to work.
Could the documentation be updated to specify using UpdateUsing instead of just Update as this does not seem to work?
I was attempting to do an update as described in the docs:
But I got this error:
Cannot complete UPDATE operation, you must provide a WHERE value (specify 1=1 to affect all rows)Looking at the Update methods, there seems to be no parameter for
where.Digging further into the Issues here lead me to this closed issue about
UpdateUsingwhich seems to work.Could the documentation be updated to specify using
UpdateUsinginstead of justUpdateas this does not seem to work?