DataService.BuildSingleRecordQueryCommand

Returns a single record (with a specified list of fields) by primary key.

public abstract IDbCommand BuildSingleRecordQueryCommand( string tableName,
	string fieldList,
	string primaryKeyFieldName,
	object primaryKeyValue,
	DataRowProcessMethod selectMethod );

Return Value

IDbCommand object

Parameters

tableName
Name of the table to query.

fieldList
List of fields to return.

primaryKeyFieldName
Name of the primary key field.

primaryKeyValue
Primary key (value)

selectMethod
Select method (such as stored procedure or select commands)


See also:

Class DataService


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