Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fixed UpdateOnly example (#111)
Browse files Browse the repository at this point in the history
UpdateOnlyFields doesn't accept a dictionary
  • Loading branch information
GuerrillaCoder authored Oct 11, 2024
1 parent 80cc5df commit a7d4207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ormlite/apis/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var updateFields = new Dictionary<string,object> {
[nameof(Person.FirstName)] = "JJ",
};

db.UpdateOnlyFields<Person>(updateFields, p => p.LastName == "Hendrix");
db.UpdateOnly<Person>(updateFields, p => p.LastName == "Hendrix");
```

Using a typed SQL Expression:
Expand Down

0 comments on commit a7d4207

Please sign in to comment.