remove PairData.Update

this is expensive and unnecessary because the entity is already tracked
This commit is contained in:
Spirtix 2025-06-30 15:26:47 +02:00
parent 12bb663076
commit bca383c4d0

View File

@ -50,9 +50,7 @@ public class KeyValueService {
}
}
if (exists)
ctx.PairData.Update(pair);
else
if (!exists)
ctx.PairData.Add(pair);
ctx.SaveChanges();