Constructs a select command for the specified parameters.

Namespace: SimpleMode.SecureLicenseManager.Data
Assembly: SimpleMode.SecureLicenseManager.Data (in SimpleMode.SecureLicenseManager.Data.dll) Version: 1.5.5120.0 (1.5.5120.0)

Syntax

C#
IDbCommand GetSelectCommand(
	IDbConnection connection,
	string tableName,
	List<string> selectFields,
	List<DbParameter> selectWhereParameters,
	List<string> selectOrderByFields,
	int skip,
	int itemCountLimit,
	bool getTotalCount
)
Visual Basic
Function GetSelectCommand ( _
	connection As IDbConnection, _
	tableName As String, _
	selectFields As List(Of String), _
	selectWhereParameters As List(Of DbParameter), _
	selectOrderByFields As List(Of String), _
	skip As Integer, _
	itemCountLimit As Integer, _
	getTotalCount As Boolean _
) As IDbCommand
Visual C++
IDbCommand^ GetSelectCommand(
	IDbConnection^ connection, 
	String^ tableName, 
	List<String^>^ selectFields, 
	List<DbParameter^>^ selectWhereParameters, 
	List<String^>^ selectOrderByFields, 
	int skip, 
	int itemCountLimit, 
	bool getTotalCount
)

Parameters

connection
Type: System.Data..::..IDbConnection
Connection to the license database.
tableName
Type: System..::..String
The name of the database table that will be used to construct the select command.
selectFields
Type: System.Collections.Generic..::..List<(Of <(<'String>)>)>
The list of table fields that will be used to construct the select command.
selectWhereParameters
Type: System.Collections.Generic..::..List<(Of <(<'DbParameter>)>)>
The list of DbParameter that will be used to construct the where clause of the select command.
selectOrderByFields
Type: System.Collections.Generic..::..List<(Of <(<'String>)>)>
The list of fields that will be used to construct the order by clause of the select command.
skip
Type: System..::..Int32
The number of records to skip in the select.
itemCountLimit
Type: System..::..Int32
The maximum number of records that will be returned by the select command.
getTotalCount
Type: System..::..Boolean
True if the select command should also return the total number of records that match the select criteria.

Return Value

DbCommand that can be used to issue a select database command that returns license data records.

See Also