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)