There is already an open DataReader associated with this Con 返回

SqlSugar 老数据
2 1776

My  sql  There is already an open DataReader associated with this Connection which must be closed first.

热忱回答2

  • IsAutoCloseConnection = true 

    并且

    SqlSugarClient换成SqlSugarScope

    0 回复
  • yu yu VIP0
    2021/8/31

    使用了原生的 DataReader加using即可解决。

    例: using var reader = base.Context.Ado.GetDataReader

    0 回复