SqlCommandBuilder<TEntity>.BuildInsertStatementForEntity Method
Creates and returns an INSERT command for the specified entity.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public SqlBuilder BuildInsertStatementForEntity(
TEntity entity
)
Parameters
entity
Type: TEntity
The object whose INSERT command is to be created. This parameter is named entity for consistency with the other CRUD methods, but in this case it doesn’t need to be an actual entity, which means it doesn’t need to have a primary key.
Return Value
Type: SqlBuilder
The INSERT command for entity.