C
C#7mo ago
IzaacB

EF Relationships - Constraint to ids present in another relationship

Hello. I've got three entities that I have a hard time configuring the relationships between. EntityPlatform - no exposed relationships EntityGame - related to multiple EntityPlatforms EntityMod - related to one game, and one EntityPlatform that exists in the related EntityGames related platforms That last relationship is throwing me for a loop, how do I configure that constraint, preferably using the modelbuilder?
2 Replies
Keswiik
Keswiik7mo ago
You aren't going to find a convenient relationship type for EntityMod. If you want to constrain EntityMod to a platform supported by its referenced EntityGame, you will have to do this programmatically and not as part of building your relationships.
IzaacB
IzaacBOP7mo ago
Okey. Figured that I'd probably had to do that.
Want results from more Discord servers?
Add your server