0

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

Erik Philips
  • 53,428
  • 11
  • 128
  • 150
Kanna Reddy
  • 309
  • 4
  • 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
  • 869
  • 1
  • 8
  • 18