Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product name?
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
Answer:A
Assume 2 columns named as Product and Category how can be both sorted out based on first by category and then by product name?
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
Explanation: var sortedProds = _db.Products.Orderby(c => c.Category) . ThenBy(n => n.Name).