GetSqlQueryForSyncData<T>(Result<T>, IQueryGenerator, int) Method
Generates SQL queries for synchronizing data based on the provided object.
Namespace
DbSyncKit.Core.SqlBuilder
Containing Type
QueryBuilder

Syntax

public string GetSqlQueryForSyncData<T>(Result<T> result, IQueryGenerator QueryGeneratorManager, int BatchSize = 20)

Remarks

This method generates SQL queries for insert, delete, and update operations based on the provided object. It uses the specified instance to generate SQL statements. The queries are separated into batches using the specified batch size.

Type Parameters

Name Description
T

Parameters

Name Type Description
result Result<T> The object containing added, deleted, and edited entries.
QueryGeneratorManager IQueryGenerator The instance used for generating SQL queries.
BatchSize int The size of query batches. Default is 20.

Return Value

Type Description
string A string containing SQL queries for inserting, deleting, and updating data based on the provided object.

See Also