Hi,
I have this situation :
foreach(var item in list)
{
var result = dbContext.Customers.ToArrays();
......
......
.......
//Here i insert new customer into database but not saved
dbContext.Customers.add(new Customer);
{
The problem is for result variable, the first loop works, but the second return Time Out because the Customer Entity is changed, hot to risolve this problem ?
Thanks.

Sachin SinghRank #66 · 26.2K reputationPosted Jan 5, 2021, 10:01 AM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Jan 5, 2021, 11:49 AM EST