I ensured my tables all have primary keys which are not null fields. I ensured my views contain one of these primary key fields. Nothing works.
When I try to add the views in the wizard, Visual Studio returns me to the EDMX diagram view but the views I just added are not there! This below shows when returned to the diagram view:
The model was generated with warnings or errors.PMCPolyModel.edmx Please see the Error List for more details. These issues must be fixed before running your application. Loading metadata from the database took 00:00:00.5619194. Generating the model took 00:00:00.5230463. Added the connection string to the App.Config file."
The internal error is:
Error 6013: The table/view '[My View Name]' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity, you will need to review your schema, add the correct keys, and uncomment it."
I closed and reopened Visual Studio and the EDMX diagram view states "The Entity Data Model Designer is unable to display the file you requested. You can edit the model using the XML Editor."