We are designing a SQL Server database with link tables for many-to-many开发者_如何学编程 relations. The question is are there any best practices for naming these kinds of tables for use with the entity framework?
Let's say there's a table
Customer and Address
Then there is a link table between them, what do we call it? CustomerAddress ? Or something else?
Thnx
For example, users - UsersInRoles - Roles. If CustomerAddress does not contains anything except CustomerID and AddressID, EF'll generate only two entities Customer (with Addresses property) and Address (with Customers) and there is no any matter how you call this intermediate table
精彩评论