Generates an INSERT query based on the provided entity, key columns, and excluded columns.
- Namespace
- DbSyncKit
.PostgreSQL - Containing Type
- QueryGenerator
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 |
List of key columns. |
| excludedColumns | List |
List of excluded columns. |
Return Value
| Type | Description |
|---|---|
| string | Insert Query in string. |