Skip to content

Update documentation to reflect use of UpdateUsing #24

@KeishaW

Description

@KeishaW

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions