Generates an INSERT query based on the provided entity, key columns, and excluded columns.
- Namespace
- DbSyncKit.SQLite
- Containing Type
- QueryGenerator
- Implements
-
Syntax
public string GenerateInsertQuery<T>(T entity, List<string> keyColumns, List<string> excludedColumns)
Type Parameters
Name |
Description |
T |
Type of the entity. |
Parameters
Name |
Type |
Description |
entity |
T |
The entity to be inserted. |
keyColumns |
List<string> |
List of key columns. |
excludedColumns |
List<string> |
List of excluded columns. |
Return Value
Type |
Description |
string |
Insert Query in string. |