瑞雪年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: 订阅 订阅 :: 管理 ::
  263 随笔 :: 0 文章 :: 438 评论 :: 24万 阅读

LINQ 太强了!强大到这样的功能,可以一句话搞定。

Select the top five customers in the Northwind database
whose contact is the owner and those owners who placed orders totaling more than
$10,000, then create XML containing the company name, contact name, phone
number, and total amount of the orders. Finally, the results are written out to the

BigSpenders.xml file:

Code

posted on   瑞雪年  阅读(309)  评论(2编辑  收藏  举报
点击右上角即可分享
微信分享提示