mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 00:08:50 -07:00
remove PairData.Update
this is expensive and unnecessary because the entity is already tracked
This commit is contained in:
parent
12bb663076
commit
bca383c4d0
@ -50,9 +50,7 @@ public class KeyValueService {
|
||||
}
|
||||
}
|
||||
|
||||
if (exists)
|
||||
ctx.PairData.Update(pair);
|
||||
else
|
||||
if (!exists)
|
||||
ctx.PairData.Add(pair);
|
||||
ctx.SaveChanges();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user