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 | |
---|---|---|
RemoveKey(Type, Object) | Executes a DELETE command for the entity whose primary key matches the id parameter. | |
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)