DRAG DROP You need to modify the ExecuteCommandProcedure() method to meet the technical requirements. Which code segment should you use?
Answer:
3 Comments on “Which code segment should you use?”
FigArtsays:
QueryAsync() is not a valid method on the EntityCommand object. Given that this code block is the async equivalent of “void”, it makes sense that we execute “ExecuteNonQueryAsync” as this query does not return values.
2
0
TestTakersays:
I agree, it says ExecuteNonQueryAsync on other exams
QueryAsync() is not a valid method on the EntityCommand object. Given that this code block is the async equivalent of “void”, it makes sense that we execute “ExecuteNonQueryAsync” as this query does not return values.
2
0
I agree, it says ExecuteNonQueryAsync on other exams
1
0
Correct :
await connection.OpenAsync();
await command.ExecuteNonQueryAsync();
1
0