a) var sortedProds = _db.Products.Orderby(c => c.Category)
b) var sortedProds = _db.Products.Orderby(c => c.Category) + ThenBy(n => n.Name)
c) var sortedProds = _db.Products.Orderby(c => c.Category) . ThenBy(n => n.Name)
d) all of the mentioned
Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!