Generates an UPDATE query based on the provided entity, key columns, excluded columns, and edited properties.
- Namespace
- DbSyncKit
.SQLite - Containing Type
- QueryGenerator
- 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 | Type of the entity. |
Parameters
| Name | Type | Description |
|---|---|---|
| DataContract | T | The entity data contract. |
| keyColumns | List |
List of key columns. |
| excludedColumns | List |
List of excluded columns. |
| editedProperties | Dictionary of edited properties. |
Return Value
| Type | Description |
|---|---|
| string | Update Query in string. |