Jul 15, 2020 11:41 AM|MBARK|LINK
I'm working on an ASP.NET MVC project, I use Entity
Framework [ Database First ], I created a data model depend
on SQL server database, I created a Table in the database and I updated the data model from the database, and when I try to add a record
to the new table I created (this table doesn't have a PK) I got an error,
when I search about the error I Understood that in Entity Framework need to have a PK for Entity.
So I ASK if I can set a Primary Key for an Entity without affect database, or any other solution to solve this problem and massive thanks in advance.