Generates a SELECT query based on the provided table name, list of columns, and schema name.
- Namespace
- DbSyncKit
.PostgreSQL - Containing Type
- QueryGenerator
Syntax
public string GenerateSelectQuery<T>(string tableName, List<string> listOfColumns, string schemaName)Type Parameters
| Name | Description |
|---|---|
| T | Type of the entity. |
Parameters
| Name | Type | Description |
|---|---|---|
| tableName | string | Name of the table. |
| listOfColumns | List |
List of columns. |
| schemaName | string | Optional schema name, default is 'public'. |
Return Value
| Type | Description |
|---|---|
| string | Select Query in string. |