0
我有這些表;實體框架4.0關係映射表
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)
當我生成使用EF4數據庫模型,它生成除了_MAP所有表類。對於這些似乎要添加一個EdmRelationshipAttribute
,但不是單獨的課程。
我將如何創建並保存新的Customer_Car_Map?