This solution is helpful, I Like it. 4 dislike Article icon 1 Views: 375

In this video I will demonstrate how to solve the error that says, InvalidOperationException: A second operation started on this context before a previous operation completed. This is usually caused by different threads using the same instance of DbContext, however instance members are not guaranteed to be thread safe. This could also be caused by a nested query being evaluated on the client, if this is the case rewrite the query avoiding nested invocations.

InvalidOperationException, EF Core 6,Database Context,

Edit Article
Login to Continue

Community of Software Developers

Welcome, log in to continue reading. It's free and only takes a minute.

© 2020 - ErnesTech - Privacy