Equivalent of SQL ISNULL in LINQ?
In SQL you can run a ISNULL(null,'') how would you do this in a linq query? I have a join in this query: var hht = from x in db.HandheldAssets join a in db.HandheldDevInfos on x.AssetID equals a.DevName into DevInfo from aa in DevInfo.DefaultIfEmpty() select new { AssetID = x.AssetID, Status = xx.Online }; but I have a column that has a bit type that is non nullable (xx.online) how can I set this to false if it is null? Since aa is the set/object that might be null, can you check aa == null ? ( aa / xx might be interchangeable (a typo in the question); the original question talks about xx but