Mark Tabor

Mark Tabor

  • 587
  • 2k
  • 460.5k

Primary foreign key in model class mvc

Aug 4 2019 3:08 AM
I have a registration table in which i have city and country as foreign key , as shown below , I have their own model classess as well but when i am writing a navigation property as city and country i my model class it gives error like
 
below are my model classes
 
 
and below is for country
 

Answers (4)