I am wondering if every table that will be in a db needs to have a class representation in the EF?
For example:
I have a customer table and I have a class for that table.
I have an address table and I have a class for that table.
I have a Customer_Address_Mapping table that has two columns. One is customerid and the other is addressid. So obviously this table associates customers with their addresses. The fk relationships are in place.
So do I have to have a class for this table in the EF?
I'm sure at some point I'll have to write a LINQ query that will query the customer table and to get the addresses for said customer join to the Customer_Address_Mapping table....
So do I have to have a class that represents the Customer_Address_Mapping table to use in a LINQ join or is there a way / does EF do that heavy lifting for me....and if so what is that topic / subject as I need to educate myself.
TIA
For anyone else who comes across this after MarcinJuraszek educated me on navigation properties I found this to be a great follow up lesson.
http://blog.staticvoid.co.nz/2012/7/17/entity_framework-navigation_property_basics_with_code_first