Mark Tabor

Mark Tabor

  • 569
  • 1.9k
  • 431.2k

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)