Product of a left outer join in linq not keeping the right side -
I am trying to connect a left external using linq. I swear that this was done a few weeks ago when I wrote and tested it, but now it is not really involved in both sides.
var history from j = deviceTable where d.DeviceType == 5 select D) H. Serialanmar equals d. DH in serial number DH In the default iFacti (subDH) sub-HD select; This should work as a left external joiner, is not it? I'm missing something important, because all this has to be done in serial numbers on every table, I've made a SQL version, and it works just fine.
SELECT * FROM [deviceTable] AS [t0] Connect to the left over (SELECT * FROM [historyTable]) AS [t1] ON [T]. [Serial number] = [t1]. [Serialnumber] where [t 0]. [Device type] = 5 geo What am I doing wrong?
It looks like your SQL has a round on the left and right side. Try it out:
var combined = D to the device in dable where d.DeviceType == 5 is included in history. Select dh.DefaultIfEmpty () from the subdh in the table.h.SerialNumber dh on D.SerialNumber New {d, Sub DH};
Comments
Post a Comment