I have these tables;
Customer
- CustomerID (primary key)
- Name
Car
- CarID (primary key)
- Model
Customer_Car_Map (composite primary key CustomerID and CarID)
- CustomerID (foreign key to Customer.CustomerID)
- CarID (foreign key to Car.CarID)
When I generate the models from the database using EF4, it generates classes for all tables except for the _Map tables. For these it seems to add an EdmRelationshipAttribute
, but not separate class.
How would I create and save a new Customer_Car_Map?