public void Delete(int id) { var expression = _expressionProvider.ProvideDeleteExpression(_tableName, id); var command = new SqlCommand(expression, _connection) { Transaction = _transaction }; command.ExecuteNonQuery(); }
public void Delete(int id) { var expression = _expressionProvider.ProvideDeleteExpression(_tableName, id); _connection.Execute(expression, null, _transaction); }