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
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.Okey. Figured that I'd probably had to do that.