我有一个 Lambda 表达式,它导致“序列中的多个值”,即数据重复。这是 lambda 表达式:
var destinations = this.contentBusiness.GetAllDisplayVersions()
.Where(x => airportDestinations.Any(y => y.DestinationAirport.DestinationGuideId == x.ParentId))
.Select(x => new DestinationViewModel(airportDestinations.Single(y => y.DestinationAirport.DestinationGuideId == x.ParentId), x));
现在我需要相应的 SQL 语句。