I have a LINQ statement in which I join the ID field. The problem is that sometimes the identifier to the left of "equal" can be null.Is there any way to handle this?
from x in left where x.Id != null join y in right on x.Id equals y.Id into rightMatches from y2 in rightMatches.DefaultIfEmpty() //in your comments you said LEFT JOIN select new {x, y2};
Source: https://habr.com/ru/post/1794777/More articles:Why does the same ajax domain request add the jsonp callback parameter? - jsonHow to get a localized list of available iPhone language names in objective-c? - iphoneRunning winrs from Team Build Hangs - powershellValidation logic in Google App Engine - pythonHow to access Oracle function (with default parameters) using Hibernate? - oracleRAW and PHP images - phpLINQ Join in Присоединиться, как? - joinHow to change the look of the default switch, not the functionality? - javascriptASP.NET Transferring data between multiple page sessions - asp.netAS3: Impossible to have getters and setters for one variable in different interfaces? - interfaceAll Articles