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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2