Generates an UPDATE query for updating data in a database table.
- Namespace
- DbSyncKit
.Templates - Containing Type
- Query
Generation Manager - Implements
-
- IQueryGenerator.GenerateUpdateQuery
<T> , (string propName, object propValue) [])
- IQueryGenerator.GenerateUpdateQuery
Syntax
public string GenerateUpdateQuery<T>(T DataContract, List<string> keyColumns, List<string> excludedColumns, (string propName, object propValue)[] editedProperties)
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
DataContract | T | The entity with the updated data. |
keyColumns | List |
The list of key columns used for updating. |
excludedColumns | List |
The list of columns to be excluded from the update. |
editedProperties | A dictionary representing the properties and their new values to be updated. |
Return Value
Type | Description |
---|---|
string | A string representing the generated UPDATE query. |