2012-03-05 117 views
0

这是我想重现查询:LINQ到SQL相当于该查询的

select 
    act.AccountID, 
    ast.AssetID, 
    b.Amount 
from 
    Account act left outer join 
    Balance b on act.AccountID = b.AccountID left outer join 
    Asset ast on b.AssetID = ast.AssetID 

我想要得到的结果如下所示:

Dictionary(of Account, Dictionary(of Asset, Double)) 
+0

LINQ-to-SQL(c#)中的左外连接:http://stackoverflow.com/q/584820/284240 – 2012-03-05 20:37:56

+0

这不会让我知道我需要的结果类型。 – 2012-03-05 20:52:46

回答

0

从内存,左连接用LINQ 2 SQL语法中的简单语句来完成

​​
+0

如何包含连接列AccountID? – 2012-03-05 21:48:45