I have two entities referenced one to many. When entity framework created the table it creates two foreign keys, one for the key I have specified with the fluent interface and t
best thing is to remove departmentid property from Person class and add the following statement. MapKey will create foreign key column with the name you specify