-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels