mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -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)
|
if (!exists)
|
||||||
ctx.PairData.Update(pair);
|
|
||||||
else
|
|
||||||
ctx.PairData.Add(pair);
|
ctx.PairData.Add(pair);
|
||||||
ctx.SaveChanges();
|
ctx.SaveChanges();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user