DataService.ExecuteNonQuery

This method executes a query and returns the number of affected rows.

public sealed bool ExecuteNonQuery( IDbCommand command,
	int expectedRecordCount );

Return Value

True, if number of affected records is the same as the expected record count.

Parameters

command
Command string (such as an SQL Insert command)

expectedRecordCount
Number of records we expect to be effected by this command.

Overloads:

public abstract int ExecuteNonQuery( IDbCommand command );

See also:

Class DataService


  Last Updated: 5/23/2007 | © , 2007