Multiple Join and Group By LINQ
问题 I need to generate this data model (example): IList<FeatureGroupFeaturesDto> fcf = new List<FeatureGroupFeaturesDto>(); fcf.Add(new FeatureGroupFeaturesDto { FeatureGroup = new FeatureGroupDto { Id = 1, Name = "Interior" }, Features = new List<FeatureDto> { new FeatureDto { Id = 7, Name = "Bancos Traseiros Rebatíveis" }, new FeatureDto { Id = 35, Name = "Computador de Bordo" }, new FeatureDto { Id = 38, Name = "Suporte para Telemóvel" } }, }); fcf.Add(new FeatureGroupFeaturesDto {