Jiry_XD
Explore posts from servers✅ Seeding question
Gotcha thanks! One more question however:
As you can see in my machine class I have only a List of OptionMachine
But not a list of Option.
Online I always saw that they add both the explicit Junction/Join entity and the entity itself?:
https://learn.microsoft.com/en-us/ef/core/modeling/relationships/many-to-many#many-to-many-and-join-table-with-payload
https://stackoverflow.com/questions/78766403/net-ef-core-how-to-correctly-insert-and-update-a-model-in-a-many-to-many-rela
For example in above Post, they hold both a list of Tag and a list of PostTag
26 replies
✅ EF Core Junction Tables with seperate columns
Maybe one last thing I'd like to ask:
If you look at OP's Question:
https://stackoverflow.com/questions/78766403/net-ef-core-how-to-correctly-insert-and-update-a-model-in-a-many-to-many-rela
You can see he holds both the junction and other entity
Player:
Team:
In my case:
I only want them with the price, is it okay to leave out List<Option>
And just use the junction List<OptionMachine>?
Or would that mean I have to use entityconfiguration?
34 replies