✅ Seeding question
Hi all,
In my app I am using EF Core
I have a many to many relationship between machine and option
Every machine has a different price per option, so I added price as payload to the junction table.
Pseudocode:
Machine:
Option:
OptionMachine:
Now my question is how do I seed Machine?
Lets say I have some existing options:
As you can see I cannot use the machine itself to seed the junction table, how do I go about doing this?
In my app I am using EF Core
I have a many to many relationship between machine and option
Every machine has a different price per option, so I added price as payload to the junction table.
Pseudocode:
Machine:
Option:
OptionMachine:
Now my question is how do I seed Machine?
Lets say I have some existing options:
As you can see I cannot use the machine itself to seed the junction table, how do I go about doing this?
