Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/12/2014, 09:28
daneco1720
 
Fecha de Ingreso: noviembre-2010
Mensajes: 105
Antigüedad: 13 años, 5 meses
Puntos: 0
LINQ Consultas

BUEN DIA

SOY ALGO NUEVO CON LO DE LAS CONSULTAS CON LINQ....Y TENGO UNA CONSULTA QUE NO SE LO QUE SIGNIFICA

SE ENCUENTRA ASI:

Código:
var qryPe = from p in db.Participante
           join pe in db.ParticipanteEvento on p.Identificacion equals pe.Identificacion into oj
           from sub_pe in oj.DefaultIfEmpty()
           select new { p, sub_pe };
NO ENTIENDO LA PARTE DONDE DICO INTO OJ NI NADA DE LO QUE SIGUE....

ademas de esa consulta hay otras que dependen de esa consulta

estan asi:
Código:
if (!string.IsNullOrEmpty(buscarParticipanteModel.IdEvento))
            {
                qryPe = qryPe.Where(u => u.sub_pe.IdEvento == buscarParticipanteModel.IdEvento && u.p.IdEvento == buscarParticipanteModel.IdEvento);
                SoloIdevento = true;
            }
var qry = from m in qryPe
          select m.p;

string consulta=qry.ToString();
ListaPP = qry.ToList();
si me pueden ayudar a entender gracias