From a7d4207c0d97c3e8470fb781b3ff41c7cbfd9da9 Mon Sep 17 00:00:00 2001 From: GuerrillaCoder <11444395+GuerrillaCoder@users.noreply.github.com> Date: Fri, 11 Oct 2024 02:37:32 +0100 Subject: [PATCH] Fixed UpdateOnly example (#111) UpdateOnlyFields doesn't accept a dictionary --- docs/ormlite/apis/update.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ormlite/apis/update.md b/docs/ormlite/apis/update.md index a6cfd05d04..bc4a832369 100644 --- a/docs/ormlite/apis/update.md +++ b/docs/ormlite/apis/update.md @@ -137,7 +137,7 @@ var updateFields = new Dictionary { [nameof(Person.FirstName)] = "JJ", }; -db.UpdateOnlyFields(updateFields, p => p.LastName == "Hendrix"); +db.UpdateOnly(updateFields, p => p.LastName == "Hendrix"); ``` Using a typed SQL Expression: