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