How do I do an inner GroupJoin on dotnet?
I'm using .NET 6 with Entity Framework. This is my situation: I have a BenefitEntity (with Name and Description properties and a relationship with BenefitCategory) and this BenefitCategory which has Name and Description as well.
In the application, all the Names and Descriptions are translated, we have a TranslationEntities table that contains all the translations.
Here are the three classes (I'll keep it simple and put just the properties we need):
The TranslationEntities table contains all the translations, for all the entities type. I want to get all the BenefitEntity, using the GroupJoin for their Name/Description and do another inner join for its BenefitCategory name and description. I'm able to do the first one, but not able to do the second one.
1 Reply
Here is what I did:
Starting from that point, how can I do another Join for CategoryEntity, using the same translationQuery, joining the categoryEntity.Id with translation.EntityId ?