VB.Net LINQ相当于SQL

时间:2017-03-12 05:26:59

标签: sql-server vb.net entity-framework linq

我继承了一个我无法修改的数据库,需要从2个表中加入/分组结果(没有任何外键)。

表A(调整员)

Adjuster_Rec INT, 
Adjuster_Name VARCHAR(100), 
Adjuster_FK_Market_Rec INT,
Adjuster_Active BIT

表格FD(Pre_FinanceDetail)

MarketID INT,
MarketName VARCHAR(100)

SQL

Select A.Adjuster_Rec, A.Adjuster_Name, A.Adjuster_FK_Market_Rec, FD.MarketName
from Adjuster A
Left Join Pre_FinanceDetail FD ON A.Adjuster_FK_Market_Rec = FD.MarketID 
WHERE A.Adjuster_Active = 1
GROUP BY A.Adjuster_Rec, A.Adjuster_Name, A.Adjuster_FK_Market_Rec, FD.MarketName

这个VB.NET LINQ的等价物是什么?

0 个答案:

没有答案