Commit 781e80a
committed
Unblock ExecuteUpdate column-self-reference EF Core tests: not a simulator gap — ExecuteUpdate bypasses the change tracker, but the verification queries used context.Users.Single(...) which returns the tracked entity (cached from the initial AddRange/SaveChanges) with the stale pre-update value. Changed verifications to AsNoTracking().Single() so the identity-map shortcut doesn't surface stale data. The literal-value sibling test masked the same pattern by verifying via .Sum(), which is an aggregate query that always hits the DB. Probe-confirmed the simulator's UPDATE [u] SET [u].[col] = [u].[col] + 1 FROM [Users] AS [u] WHERE … path was already correct — EF's exact emitted SQL works end-to-end through a raw connection.
1 parent b34392c commit 781e80a
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
101 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments