How to create foreign key reference in code first approac
How can I create foreign key reference in code first approach but primary key present in different model suppose that primary key present in model1 so how can I create foreign key reference Indifference model2 (model1 and model2 both are different model class context)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Manas MohapatraRank #182 · 13.2K reputationPosted Aug 7, 2017, 5:15 AM EDT
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 7, 2017, 6:21 AM EDT