Entity framwork made a entity for each of my tables except for one, and I’m not sure why. I select it when i generate it from the database.
Here is my entity framework diagram, and the diagram in SQL:
https://i.stack.imgur.com/KJ18h.jpg
Notice how RecipeMeal is missing from entity framework. Does anyone have an idea why this might be happening?
RecipeMeal is supposed to store if a recipe is breakfast, lunch etc. It’s not a column of Recipes because a recipe could be a lunch OR dinner recipe, as an example.
I am using EF 5.0
Thanks.
Entity Framework has built-in support for many-to-many relationships.
The table is exposed through the two
ICollection<T>properties inMealandRecipe.