Generates a DELETE query based on the provided entity and key columns.
- Namespace
- DbSyncKit
.MSSQL - Containing Type
- QueryGenerator
Syntax
public string GenerateDeleteQuery<T>(T entity, List<string> keyColumns)
Type Parameters
Name | Description |
---|---|
T | Type of the entity. |
Parameters
Name | Type | Description |
---|---|---|
entity | T | The entity to be deleted. |
keyColumns | List |
List of key columns. |
Return Value
Type | Description |
---|---|
string | Delete Query in string. |