There is already an open DataReader associated with this Command which must be closed first

前端 未结 18 2316
孤街浪徒
孤街浪徒 2020-11-22 01:40

I have this query and I get the error in this function:

var accounts = from account in context.Accounts
               from guranteer in account.Gurantors
           


        
18条回答
  •  长发绾君心
    2020-11-22 02:30

    use the syntax .ToList() to convert object read from db to list to avoid being re-read again.Hope this would work for it. Thanks.

提交回复
热议问题