From 37b0af87878d41dc3b0204a70a95879c85bcd320 Mon Sep 17 00:00:00 2001 From: Gabriel Santos Date: Tue, 27 Jan 2026 13:24:23 -0500 Subject: [PATCH] properly add escaped curly braces --- src/Gemstone.Data/Model/SecureTableOperations.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gemstone.Data/Model/SecureTableOperations.cs b/src/Gemstone.Data/Model/SecureTableOperations.cs index 14ae9b7d0..091bda3aa 100644 --- a/src/Gemstone.Data/Model/SecureTableOperations.cs +++ b/src/Gemstone.Data/Model/SecureTableOperations.cs @@ -949,7 +949,7 @@ public int DeleteRecord(ClaimsPrincipal principal, T record) { IEnumerable whereElements = BaseOperations .GetPrimaryKeyFieldNames(true) - .Select((primaryKeyField, index) => $"{primaryKeyField} = {index}"); + .Select((primaryKeyField, index) => $"{primaryKeyField} = {{{index}}}"); RecordRestriction recordRestrict = new RecordRestriction( string.Join(" AND ", whereElements), BaseOperations.GetPrimaryKeys(record) @@ -968,7 +968,7 @@ public Task DeleteRecordAsync(ClaimsPrincipal principal, T record, Cancella { IEnumerable whereElements = BaseOperations .GetPrimaryKeyFieldNames(true) - .Select((primaryKeyField, index) => $"{primaryKeyField} = {index}"); + .Select((primaryKeyField, index) => $"{primaryKeyField} = {{{index}}}"); RecordRestriction recordRestrict = new RecordRestriction( string.Join(" AND ", whereElements), BaseOperations.GetPrimaryKeys(record)