0

In ASP.NET MVC, for creating of models with Entity Framework, is a primary key on the tables mandatory?

Erik Philips
  • 51,408
  • 11
  • 123
  • 146
Kanna Reddy
  • 139
  • 5
  • 2
    Not just for EF - a table that holds actual data should ***always*** have a proper primary key. – marc_s Dec 09 '18 at 09:43
  • ASP.Net MVC and Entity Framework are completely separate frameworks. There is no reason for this question to include ASP.Net MVC. – Erik Philips Dec 09 '18 at 11:08

1 Answers1

0

No. Each and every should table have a primary key!

See explain here:

Should each and every table have a primary key?

Ivan Valadares
  • 773
  • 6
  • 17