SqlCommandBuilder<TEntity>.BuildUpdateStatementForEntity Method (TEntity, Object)

Creates and returns an UPDATE command for the specified entity.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public SqlBuilder BuildUpdateStatementForEntity(
	TEntity entity,
	Object originalId
)

Parameters

entity

Type: TEntity
The entity whose UPDATE command is to be created.

originalId

Type: System.Object
The original primary key value.

Return Value

Type: SqlBuilder
The UPDATE command for entity.

Remarks

This overload is helpful when the entity uses an assigned primary key.

See Also

Reference

SqlCommandBuilder<TEntity> Class
DbExtensions Namespace

© Max Toro Q.