문제

Is there an easy way to reset or clear a DataReader so it can be read through more than one time?

I found a Close method but not an open method.

Please show code samples if it can be done.

도움이 되었습니까?

해결책

A DataReader is created and returned by using a SQL statement or stored procedure. In simple terms the DataReader is basically a cursor in the database data. If you want to use it again, recreate it again.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top