Executes a query against the database and returns a list of results for a specific data type.
- Namespace
- DbSyncKit.DB
- Containing Type
- DatabaseManager<T>
Syntax
public List<TItem> ExecuteQuery<TItem>(string query, string tableName)
Type Parameters
| Name |
Description |
| TItem |
The type of data to retrieve, constrained to be an instance of DataContractUtility. |
Parameters
| Name |
Type |
Description |
| query |
string |
The SQL query to execute. |
| tableName |
string |
The name of the table associated with the query. |
Return Value
| Type |
Description |
| List<TItem> |
A list of results of type TItem. |