Database.RemoveKey(Type, Object) Method

Executes a DELETE command for the entity whose primary key matches the id parameter.

Namespace: DbExtensions
Assembly: DbExtensions.dll

Overloads

  Name Description
Public method RemoveKey(Type, Object) Executes a DELETE command for the entity whose primary key matches the id parameter.
Public method RemoveKey<TEntity>(Object) Executes a DELETE command for the entity whose primary key matches the id parameter.

Syntax

public void RemoveKey(
	Type entityType,
	Object id
)

Parameters

entityType  Type

The type of the entity.

id  Object

The primary key value.

Remarks

This method is a shortcut for db.Table(entityType).RemoveKey(id).

See Also

Reference

Database Class
DbExtensions Namespace
SqlTable.RemoveKey(Object)

© Max Toro Q.