Muy buenas noches, tengo la duda de porque no carga este query
var logbook = from pp in contexto.TblTrackerOnlines.Include("Piloto,TblEstado")
where pp.Piloto.PilotId == iDpiloto
& pp.TblEstado.IdEstado != 4 & pp.TblEstado.IdEstado != 3
& pp.TypeOfFligth == "ProReal" & (DateTime.Now.Year == pp.FechaTrack.Value.Year)
select new
{
Id = pp.IdTracker,
Matricula = pp.Matricula,
Callsing = pp.Piloto.CallSing,
Despegue = pp.HoraTakeOff,
Aterrizaje = pp.HoraLanding,
AepTo = pp.IcaoTo,
AepLN = pp.IcaoLN,
TipoAeronave = (from j in contexto.TblAirplanes.Include("TblAirplaneTipe") where j.Matricula == pp.Matricula select new { descripcion
= j.TblAirplaneTipe.Description })
};
si le saco la referencia a tipoaeronave anda Perfecto!
que estoy haciendo mal?
Muchas gracias