Generates a SELECT query for retrieving data from a database table.
- Namespace
- DbSyncKit
.Templates .Interface - Containing Type
- IQueryGenerator
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 |
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. |