Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit f004935

Browse files
committed
Update docs to renamed API
1 parent 770e79e commit f004935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,13 @@ db.UpdateOnly(new Person { FirstName = "JJ" },
449449
For the ultimate flexibility we also provide un-typed, string-based expressions. Use the `.Params()` extension method escape parameters (inspired by [massive](https://github.com/robconery/massive)):
450450

451451
```csharp
452-
db.Update<Person>(set: "FirstName = {0}".Params("JJ"),
452+
db.UpdateFmt<Person>(set: "FirstName = {0}".Params("JJ"),
453453
where: "LastName = {0}".Params("Hendrix"));
454454
```
455455
Even the Table name can be a string so you perform the same update without requiring the Person model at all:
456456

457457
```csharp
458-
db.Update(table: "Person", set: "FirstName = {0}".Params("JJ"),
458+
db.UpdateFmt(table: "Person", set: "FirstName = {0}".Params("JJ"),
459459
where: "LastName = {0}".Params("Hendrix"));
460460
```
461461
**UPDATE "Person" SET FirstName = 'JJ' WHERE LastName = 'Hendrix'**

0 commit comments

Comments
 (0)