I have a collection of entities that I generated from a database. One table will not add to the EDMX file because it does not have a key or even something that can automatically be inferred as a key.
Redesigning the DB table is not possible. Is there a way to add this table to my diagram?
I remember a simple technique a while back but the details ahve escaped me.
I am going to take you at your word that you can not change the table, and still ask you to please try to do that 🙂 just because how bad of an idea this is. But assuming that you can not do anything about that after trying for the nth time try this post and see if it helps:
http://www.benhblog.com/2008/11/entity-framework-and-tables-with-no.html