Generates a delete query for a given entity and key columns.
- Namespace
- DbSyncKit
.MySQL - Containing Type
- QueryGenerator
Syntax
public string GenerateDeleteQuery<T>(T entity, List<string> keyColumns)
Type Parameters
Name | Description |
---|---|
T | The type of entity. |
Parameters
Name | Type | Description |
---|---|---|
entity | T | The entity object. |
keyColumns | List |
The list of key columns for deletion. |
Return Value
Type | Description |
---|---|
string | The generated SQL delete query. |