title: Convert sql Query to LINQ return always null
body: <p>I have this sql Query:</p>
  
  <pre><code>SELECT *
    FROM [Incentivos].[dbo].[Incentivos] AS I 
    INNER JOIN [Incentivos].[dbo].[Captura] AS C ON I.CapturaID = C.ID
    WHERE I.EmpleadoID =4530 and C.mdEstatusRegistro = 1
  </code></pre>
  
  <p>It works correctly, now I want to use it with LINQ, so I try </p>
  
  <pre><code>  var ce = _contexto.Empleados.Where(x =&gt; x.nCodigoEmpleado == codigoEmpleado)
             .Select(x =&gt; x.ID).FirstOrDefault(); //4530 value
  
   var captura = _contexto.Capturas.Where(x =&gt; x.mdEstatusRegistro).ToList(); //Captura table
  
    //JOIN
    var Incentivo = _contexto.Incentivos 
    .Join(captura, x =&gt; x.CapturaID, y =&gt; y.ID, (x, y) =&gt; new { x, y })
    .Where(x =&gt; x.y.mdEstatusRegistro &amp;&amp; x.x.EmpleadoID == ce)
    .Select(b=&gt; b.x).FirstOrDefault();
  </code></pre>
  
  <p>Problem is Join always come null, what am I doing wrong? regards</p>
  
  <p><strong>UPDATE:</strong>
  I change query more simple like</p>
  
  <pre><code> var Incentivo = from incentivos in _contexto.Incentivos
                   join captura in _contexto.Capturas on incentivos.CapturaID equals captura.ID
                   where (incentivos.EmpleadoID == ce) &amp;&amp; (captura.mdEstatusRegistro == true)
                   select incentivos;
  </code></pre>
  
  <p>But now after query I want to access Incentivo like:</p>
  
  <pre><code>Incentivo.nPorcentajeAJU //Property of Incentivo table
  </code></pre>
  
  <p>But I can't , how can I access variables now?</p>