Database.Update Method (Object, Object)

Executes an UPDATE command for the specified entity.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public void Update(
	Object entity,
	Object originalId
)

Parameters

entity

Type: System.Object
The entity whose UPDATE command is to be executed.

originalId

Type: System.Object
The original primary key value.

Remarks

This method is a shortcut for db.Table(entity.GetType()).Update(entity, originalId).

See Also

Reference

Database Class
DbExtensions Namespace
SqlTable.Update(Object, Object)

© Max Toro Q.