Database.Remove Method

Executes a DELETE command for the specified entity.

Namespace: DbExtensions
Assembly: DbExtensions.dll

Syntax

public bool Remove(
	Object entity
)

Parameters

entity  Object

The entity whose DELETE command is to be executed.

Return Value

Boolean
true if entity is deleted; otherwise, false.

Remarks

This method is a shortcut for db.Table(entity.GetType()).Remove(entity).

See Also

Reference

Database Class
DbExtensions Namespace
SqlTable.Remove(Object)

© Max Toro Q.