I have 2 tables, it is a 1-1 relationship
Table1
Table1Id(primarykey)
Table2Id(foreign key)
Colum1
Column2
Table2
Table2Id(primarykey)
Colum1
Column2
I am wanting to set this up in entity frame work code first either using data annotations or fluent api
I have tried several ways but always get a foreign key insert error when trying to insert a single table2 entity because there is no link to table 1 or it creates a bridge table which is not needed
Both table primary keys also require identitySpec and are integers
What properties in the model should be decorated with what attributes or the fluent API lambda expressions?