Database.RemoveKey<TEntity> Method (Object)
Executes a DELETE command for the entity whose primary key matches the id parameter.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public void RemoveKey<TEntity>(
Object id
)
where TEntity : class
Parameters
id
Type: System.Object
The primary key value.
Type Parameters
TEntity
Remarks
This method is a shortcut for db.Table<TEntity>().RemoveKey(id)
.
See Also
Reference
Database Class
DbExtensions Namespace
SqlTable<TEntity>.RemoveKey(Object)