GenerateSelectQuery<T>(string, List<string>, string) Method
Generates a SELECT query for retrieving data from a database table.

Syntax

string GenerateSelectQuery<T>(string tableName, List<string> ListOfColumns, string schemaName)

Type Parameters

Name Description
T

Parameters

Name Type Description
tableName string The name of the database table.
ListOfColumns List<string> The list of columns to be selected.
schemaName string The schema name of the database table.

Return Value

Type Description
string A string representing the generated SELECT query.