Which of the following code will retrieve all products in the Beverages category sorted by product name?

Nam Lê

Member
Which of the following code will retrieve all products in the Beverages category sorted by product name?
A.
Code:
Enumerable<Product> beverages = from p in db.Products
                     where p.Category.CategoryName == "Beverages"
                     orderby p.ProductName
                     select p;
B.
I
Code:
Enumerable<Product> beverages = from p in db.Products
                     where p.Category.CategoryName == "Beverages"
                     orderby p.ProductName
                     select p;
C.
Code:
IEnumerable<Product> beverages = from p in db.Products
                     where p.Category.CategoryName = "Beverages"
                     orderby p.ProductName
                     select p;
D. All of the mentioned
 

Tìm kiếm

Back
Top