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