public async Task DeleteAsync(long id, string tableName) { using (var connection = _connectionFactory.GetOpenedConnection()) { var affectedrows = await connection.ExecuteAsync(SQLQueryBuilder.BuildDeleteQuery(tableName), new { id }); CheckRows(id, tableName, affectedrows); } }