Home > Back-end >  How does EF know the name of the joining table in a many-to-many relationship
How does EF know the name of the joining table in a many-to-many relationship

Time:12-03

I've started working on a mature code-first EF6 project. There is no EDMX file. I can't find anywhere in the code where the names of the joining tables that support many-to-many relationships is specified, and yet EF knows what they are. How?

CodePudding user response:

The EF model is built by a set of conventions, which you can override with attributes or code-based configuration.

  • Related