LINQ Joining in c# with multiple conditions
Posted
by Ratheesh
on Stack Overflow
See other posts from Stack Overflow
or by Ratheesh
Published on 2010-06-11T05:44:16Z
Indexed on
2010/06/11
5:52 UTC
Read the original article
Hit count: 485
Hi Following query is not working is there any problem with it?
var possibleSegments =
from epl in eventPotentialLegs
join sd in segmentDurations on
new {
epl.ITARequestID,
epl.ITASliceNumber,
epl.DepartAirportAfter,
epl.AirportId_Origin,
epl.AirportId_Destination
}
equals
new {
sd.ITARequestId,
sd.SliceIndex,
sd.OriginAirport,
sd.DestinationAirport
}
where
epl.DepartAirportAfter > sd.UTCDepartureTime
and
epl.ArriveAirportBy > sd.UTCArrivalTime
select new PossibleSegments{ ArrivalTime = sd.arrivalTime };
© Stack Overflow or respective owner