| Devart.Common Namespace > DbDataReaderBase Class : RecordsAffected Property (DbDataReaderBase) |
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
[Visual Basic]
Overrides Public ReadOnly Property RecordsAffected As Integer [C#]
public override int RecordsAffected {get;}The number of rows changed, inserted, or deleted. -1 for SELECT statements; 0 if no rows were affected, or the statement failed.
The value of this property is not cumulative. For example, if two records are inserted in the first statement in batch mode, and the second statement affected 3 records, the value of RecordsAffected will be 3.
IsClosed and RecordsAffected are the only properties that you can call after the DbDataReader is closed.
DbDataReaderBase Class | DbDataReaderBase Members
© 2002 - 2013 Devart. All Rights Reserved.