1 2 3 4 5 6 7 8 9 10 11 12 |
LINQ to entities query // Descending SearchFareInfoList = SearchFareInfoList.OrderByDescending(o => o.NoShowFee).ToList(); // Contain : True False SegmentOrder = AirSegmentData.Select(o => o.Key).Contains(SegmentRef).ToString(); // 있으면 값 가져오기 if (AirSegmentData.Select(s => s.Key).Contains(SegmentRef).ToString() == "True") SegmentOrder = AirSegmentData.Single(s => s.Key == SegmentRef).SegmentOrder; |