GetCondition<T>(T, List<string>) Method
Generates a SQL WHERE clause based on the specified entity and key columns.
Namespace
DbSyncKit.MSSQL
Containing Type
QueryGenerator

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

Return Value

Type Description
List<string> A string representing the SQL WHERE clause based on the key columns of the entity.