DataService.BuildDeleteCommand

Creates a delete command object for the defined table and primary key.

public abstract IDbCommand BuildDeleteCommand( string tableName,
	string primaryKeyFieldName,
	object primaryKeyValue,
	DataRowProcessMethod updateMethod );

Return Value

IDbCommand object that can subsequentially be executed against a database

Parameters

tableName
Name of the table the record is to be deleted from .

primaryKeyFieldName
Primary key field name within the table

primaryKeyValue
Primary key value for the record that is to be deleted

updateMethod
Method used to update the database (commands, stored procedures,...)


See also:

Class DataService


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