QueryBuilder Class
Helper class for building SQL queries.
Namespace
DbSyncKit.Core.SqlBuilder
Base Types
graph BT Type-->Base0["QueryHelper"] click Base0 "/api/DbSyncKit.DB.Helper/QueryHelper" Base0-->Base1["object"] Type["QueryBuilder"] class Type type-node

Syntax

public class QueryBuilder : QueryHelper

Remarks

The QueryBuilder class extends the functionality of QueryHelper to provide methods for constructing SQL queries. It aids in the generation of queries for various database operations such as SELECT, INSERT, UPDATE, and DELETE.

Methods

Name Return Value Summary
GetAllColumns<T>() List<string>
Gets the names of all properties for a specified type.
Inherited from QueryHelper
GetComparableProperties<T>() PropertyInfo[]
Retrieves an array of System.Reflection.PropertyInfo objects representing the properties that are used for data comparison in objects of type T.
Inherited from QueryHelper
GetExcludedColumns<T>() List<string>
Gets the names of properties marked as excluded properties for a specified type.
Inherited from QueryHelper
GetIdentityColumns<T>() List<string>
Retrieves a list of identity columns for a specified data contract type T.
Inherited from QueryHelper
GetIncludeIdentityInsert<T>() bool
Gets whether the type specifies to include database-specific SQL statements for identity insert behavior during insert query generation, considering the GenerateInsertWithIDAttribute if present.
Inherited from QueryHelper
GetInsertWithID<T>() bool
Gets whether the type specifies to generate an INSERT query with ID, considering the GenerateInsertWithIDAttribute if present.
Inherited from QueryHelper
GetKeyColumns<T>() List<string>
Gets the names of properties marked as key columns for a specified type.
Inherited from QueryHelper
GetKeyProperties<T>() PropertyInfo[]
Retrieves an array of System.Reflection.PropertyInfo objects representing the properties that are used as key properties for uniquely identifying objects of type T.
Inherited from QueryHelper
GetSqlQueryForSyncData<T>(Result<T>, IQueryGenerator, int) string
Generates SQL queries for synchronizing data based on the provided object.
GetTableName<T>() string
Gets the table name of a specified type, considering the TableNameAttribute if present.
Inherited from QueryHelper
GetTableSchema<T>() string
Gets the table schema of a specified type, considering the TableSchemaAttribute if present.
Inherited from QueryHelper