Search code examples
c#entity-framework-coreentity-framework-6.net-5ef-power-tools

EF 6 Core - Many-to-Many Relationship Database First (EF Core Power Tools/scaffold-dbcontext)


I am having trouble trying to make my models generate like they used to before EF Core. I have tried using both EF Core Power Tools and the scaffold-dbcontext command with no success.

Most answers I've seen on Google => Stackoverflow mentioned many-to-many are now supported in EF6.

  1. Here are my expectations:

enter image description here

  1. But here are the results:

enter image description here

Is there a tool that anyone knows that can help me generate the results in point 1? Or is there perhaps parameters I need to specify when using the scaffolding command? Or select certain options in EF Core Power Tools in order for the extension to generate the models like in point 1?

Thanks in advance...


Solution

  • Scaffolding many to many is coming in EF Core 6, but not implemented yet.