I was just practicing code first new database entity framework from msdn, I wanna know whether a table without primary key can be created in code first new database EF?
No you can't because Entity Framework needs to know the key to keep track on the object when you make an update or delete operation.
Anyway it's not a good idea to have a table without a PrimaryKey
2.1m questions
2.1m answers
60 comments
56.8k users