GetCondition<T>(T, List<string>) Method
Gets a condition for use in a SQL WHERE clause based on the entity and key columns.

Syntax

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<string> The list of key columns used to create the condition.

Return Value

Type Description
List<string> A string representing the generated condition for a SQL WHERE clause.