0

This is the query that I'm trying to reproduce:

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

I'm trying to get the results as the following:

Dictionary(of Account, Dictionary(of Asset, Double))
sebagomez
  • 9,501
  • 7
  • 51
  • 89
Jeremy Cantrell
  • 26,392
  • 13
  • 55
  • 78

1 Answers1

0

From memory, the left joins are done with simple from statements in the LINQ 2 SQL syntax

Dim dc as new myDataContext
Dim result = from act in dc.Accounts
         from b in dc.Balance
         from ast in dc.Asset
         select act.AccountID, ast.AssetID, b.Amount
LongArm
  • 208
  • 1
  • 6