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

前端 未结 18 2621
孤街浪徒
孤街浪徒 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:29

    In addition to Ladislav Mrnka's answer:

    If you are publishing and overriding container on Settings tab, you can set MultipleActiveResultSet to True. You can find this option by clicking Advanced... and it's going to be under Advanced group.

提交回复
热议问题