相关疑难解决方法(0)

linq中Where和Join的区别是什么?

这两个查询之间有什么区别?他们是完全平等的?

from order in myDB.OrdersSet
    from person in myDB.PersonSet
    from product in myDB.ProductSet
    where order.Persons_Id==person.Id && order.Products_Id==product.Id
    select new { order.Id, person.Name, person.SurName,  product.Model,UrunAd?=product.Name };
Run Code Online (Sandbox Code Playgroud)

from order in myDB.OrdersSet
    join person in myDB.PersonSet on order.Persons_Id equals person.Id
    join product in myDB.ProductSet on order.Products_Id equals product.Id
    select new { order.Id, person.Name, person.SurName,  product.Model,UrunAd?=product.Name };
Run Code Online (Sandbox Code Playgroud)

linq join where

0
推荐指数
1
解决办法
394
查看次数

标签 统计

join ×1

linq ×1

where ×1