I appreciate the use of EF in relation to the existing schema - the problem is that I cannot figure out how to set up associations between tables, where the foreign key is NOT the primary key of the main table.
As an example, foo can have many bars , as defined (forgive pseudocode):
table foo { int foo\_id pk, char(10) foo\_code, ... } table foobar { int bar\_id pk, char(10) bar\_foo\_code fk(foo.foo\_code), ... }
What am I missing to create the foo_foobar association and therefore the bars navigation property for the foo object?
mapping entity-framework foreign-keys
Rammesses
source share