Make DbDataReader start reading again from the beginning of the result set

后端 未结 3 1098
旧巷少年郎
旧巷少年郎 2021-01-17 09:57

How to make dr.Read(); start reading again from the beginning if a condition is satisfied?

Something like:

SqlDataReader dr = command.Ex         


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 10:46

    The only way to restart it is to grab a new reader with ExecuteReader().

提交回复
热议问题