Database.RemoveKey Method (Type, Object)
Executes a DELETE command for the entity whose primary key matches the id parameter.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public void RemoveKey(
Type entityType,
Object id
)
Parameters
entityType
Type: System.Type
The type of the entity.
id
Type: System.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)