You need to retrieve a list of customers from a database using LINQ to Entities. What LINQ operator would you use to filter customers whose last names start with "Smith"?

  • Where
  • StartsWith
  • Contains
  • Like
The correct option is "StartsWith." This operator is used in LINQ to Entities to filter records based on the beginning characters of a string. It's suitable for filtering last names that start with "Smith."
Add your answer
Loading...

Leave a comment

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