Share via


DataReaderWrapper.RecordsAffected Property

Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property RecordsAffected As Integer
public virtual int RecordsAffected { get; }
public:
virtual property int RecordsAffected {
    int get ();
}
public function get RecordsAffected () : int

Return Value

The number of rows changed, inserted, or deleted; 0 if no rows were affected or the statement failed; and -1 for SELECT statements.

Implements

IDataReader.RecordsAffected

See Also

DataReaderWrapper Class

Microsoft.Practices.EnterpriseLibrary.Data Namespace