GenerateDeleteQuery<T>(T, List<string>) Method
Generates a DELETE query for deleting data from a database table.

Syntax

string GenerateDeleteQuery<T>(T entity, List<string> keyColumns)

Type Parameters

Name Description
T

Parameters

Name Type Description
entity T The entity representing the data to be deleted.
keyColumns List<string> The list of key columns used for deletion.

Return Value

Type Description
string A string representing the generated DELETE query.