I am new to Entity Framework. I am using an existing database and a table doesn't have primary key defined. When I use Entity Framework, I get the error "The table/view ' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.". I looked up a few stack overflow solutions / google, I still have some questions,
I've found a workaround in Davis blog (link below) to supress this error, I'll paste it here. http://www.ericsdavis.net/index.php/2009/03/14/entity-framework-and-primary-key-inference/
Save and close the .edmx file.
It worked like a charm for me, hope it helps.