Apply ISNULL like SQL in LINQ <p>I have the next LINQ where <b>o.Value</b> and <b>p.Value</b> are decimal types</p> <pre><code>from o in dbContext.Ammounts where o.Value &gt; (from p in dbContext.Payments select p).Sum(p =&gt; p.Value)) </code></pre> <p>The inner LINQ <code>from p in dbContext.Payments select p).Sum(p =&gt; p.Value)</code> can be return a NULL value and I need to apply a <code>ISNULL(linq_sentence, 0)</code></p> <p>I try with this:</p> <pre><code>from o in dbContext.Ammounts where o.Value &gt; ((from p in dbContext.Payments select p).Sum(p =&gt; p.Value)) ?? 0m) </code></pre> <p>But I get this message error:</p> <blockquote> <p>Operator '??' cannot be applied to operands of type 'decimal' and 'decimal'</p> </blockquote>