You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include and ThenInclude sub properties causes System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct
#10730
Closed
harsha89vyas opened this issue
Jul 19, 2018
· 2 comments
The following include sequence causes the System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.C)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(x => x.E)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(a => a.F)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(a => a.G)
.Include(x => x.A)
.ThenInclude(x => x.B)
.ThenInclude(x => x.D)
.ThenInclude(a => a.C)
.ThenInclude(a => a.H)
This happens due to the fix dotnet/coreclr#16991 applied due to issue https://github.com/dotnet/corefx/issues/28123
The text was updated successfully, but these errors were encountered: