如何将此SQL查询写入LINQ?

时间:2016-09-26 17:31:56

标签: sql linq

这是查询:

   select * from Product
   inner join Restaurant on Product.RestaurantId=Restaurant.RestaurantId 
   where Product.ProductName like '%something%' and Restaurant.RestaurantAddress 
   like '%something%'

1 个答案:

答案 0 :(得分:0)

您可以如下所示:

Elements links = doc.select("div.customer a");
String linkUrl;
for (Element link : links) {
    linkUrl = link.attr("href");
    System.out.println(linkUrl);
}