EF 4.1 Code First: Many to Many
问题 I have 2 entities, let's say A and B. Relation between them is many-to-many so I have another entity, let's say C. Columns for table A: -Id (PK) -> Type int generated by database -PropertyA1 -PropertyA2 -PropertyA3 Columns for table B: -Id (PK) -> Type int generated by database -Description Columns for table C (For this table I am not sure if it is better to add an extra column Id generated by database as previous tables): -IdA (PK and also foreign key to entity A) -IdB (PK and also foreign