Gets a condition for use in a SQL WHERE clause based on the entity and key columns.
- Namespace
- DbSyncKit
.Templates - Containing Type
- Query
Generation Manager - Implements
Syntax
public List<string> GetCondition<T>(T entity, List<string> keyColumns)Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| entity | T | The entity for which the condition is generated. |
| keyColumns | List |
The list of key columns used to create the condition. |
Return Value
| Type | Description |
|---|---|
| List |
A string representing the generated condition for a SQL WHERE clause. |