To execute a stored procedure that returns a set of entities, use the ________ method in Entity Framework.

  • ExecuteFunction
  • ExecuteNonQuery
  • ExecuteResultSet
  • ExecuteSqlCommand
In Entity Framework, to execute a stored procedure that returns a set of entities, the appropriate method to use is ExecuteResultSet. This method is specifically designed for executing stored procedures that return entity data. ExecuteSqlCommand is used for executing SQL commands directly, ExecuteFunction is used for non-entity-returning stored procedures, and ExecuteNonQuery is typically used for executing SQL commands that don't return any data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *