Generates an UPDATE query based on the provided entity, key columns, excluded columns, and edited properties.
- Namespace
- DbSyncKit.SQLite
- Containing Type
- QueryGenerator
- Implements
-
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<string> |
List of key columns. |
excludedColumns |
List<string> |
List of excluded columns. |
editedProperties |
(string propName, object propValue)[] |
Dictionary of edited properties. |
Return Value
Type |
Description |
string |
Update Query in string. |