Entity Framework Code first mapping without foreign key
问题 I have two tables: Requirement ID (int) PK ClientID (int) JobNumber (int) Comment ID (int) PK Job_ID (int) Comment (varchar) The tables don't have foreign keys and there's no possibility of adding any. I'm trying to map them in EF. I have classes for each and I'm trying to define the relationship in fluent code to map the Comment.Job_ID to the Requirement.JobNumber. A requirement can have many comments. Requirement has a list of Comments and Comment has a Requirement property. I have this