Exit 70-487 Developing Microsoft Azure and Web Services
Question 2 of 5
0% complete
Q2 Single choice

You are developing an ASP.NET MVC application. The application has a page that updates an image stored in a database. Members of the EntityClient namespace are used to access an Entity Framework data model. Images and associated metadata are stored in a single database table.

You need to run a single query that updates an image and associated metadata in the database while returning only the number of affected rows.

Which method of the EntityCommand type should you use?

  • A

    ExecuteScalar()

  • B

    ExecuteDbDataReader()

  • C

    ExecuteReader()

  • D

    ExecuteNonQuery()