Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
Assembly: System.Data (in System.Data.dll)
The RecordsAffected property is not set until all rows are read and you close the DataReader.
Notes to Inheritors:
This property and IsClosed should be implemented to return a value when the reader is closed.
Available since 10
Available since 2.0