Delete
The Delete and DeleteAll methods allows the deletion of data already in your database.
The return value of an Delete method is a row or rowSet of data that has just been deleted.
You can Delete using two forms, Named arguments and using the primary key with the By clause.
Delete (Named Parameters)
_db.Users.Delete(Id: 1);
Generates the following SQL
@p0 = 1 delete from [dbo].[Users] where [dbo].[Users].[Id] = @p0
Delete (By)
_db.Users.DeleteById(1);
Generates the following SQL
@p0 = 1 delete from [dbo].[Users] where [dbo].[Users].[Id] = @p0