相关考题
-
单项选择题
使用link方法语法查询,名称里面包含“鲜花”的最后一个元素()
A.names .Where(n =>n.Contains("鲜花")).First()
B.names .Where(n =>n.Contains("鲜花")).Single()
C.names .Where(n =>n.Contains("鲜花")).SingleOrDefault()
D.names .Where(n =>n.Contains("鲜花")).last() -
单项选择题
使用linq查询语法,查询商品名称为”鲜花“的商品,并按价格降序排列()
A.from p inProducts select p where p.pdtName=”鲜花”orderby price descending select p
B.from p inProducts select p where p.pdtName=”鲜花”orderby price ascending select p
C.from p inProducts select p where p.pdtName=”鲜花”orderby price select p
D.from p inProducts select p where p.pdtName=”鲜花”groupby price ascending select p -
单项选择题
使用linq查询语法,查询商品名称为”鲜花“的商品,并按价格升序排列()
A.from p inProducts select p where p.pdtName=”鲜花”orderby price descending select p
B.from p inProducts select p where p.pdtName=”鲜花”orderby price select p
C.from p inProducts select p where p.pdtName=”鲜花”group by price descending select p
D.from p inProducts select p where p.pdtName=”鲜花”select p