title: Issue in check Null condition using linq query
body: <p>I used joins and select query for passing dynamic values for the particular entity, Some fields are null in db. So i check the condition <code>!=null</code> condition but the whole select statement is throwing error if i use that field. </p>
  
  <p><strong>My code as follows,</strong> </p>
  
  <pre><code>@placementId is as input value
  
  IEnumerable&lt;Submission&gt; sub= from cc in confirmedCarrierRepository
      join cs in carrierSubmissionRepository on cc.ConfirmedCarrierID equals cs.ConfirmedCarrierID
      where cr.PlacementID == placementId
      //orderby c.panel is missed
  
      select new SubmissionEntity
      {
          PlacementId = placementId,
          //The ComissionId is null in db,
          CommissionId = cs.CommisionID.HasValue ? cs.CommisionID.ToString() : string.Empty
      }
  </code></pre>
  
  <p>Another way:</p>
  
  <pre><code>CommissionId= cs.CommisionID!=null ? cs.CommissionID : new int()
  </code></pre>
  
  <p>I can't understand why. Even i check null condition also how could the whole select won't work. Please help me to find out.</p>