In Entity Framework, which aggregate function is used to find the minimum value of a property across all entities in a DbSet?

  • Min
  • Max
  • Count
  • Average
The correct option is "Min." The Min function in Entity Framework is used to find the minimum value of a property across all entities in a DbSet. It retrieves the smallest value of the specified property from the entities in the DbSet. This function is useful when you need to find the smallest value of a particular property, such as the minimum age or the minimum salary in a collection of entities.
Add your answer
Loading...

Leave a comment

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