I have an application that uses straight T-SQL which I'd like to use Entity Framework with. The problem is that all the data is being pulled from views, and those views are pulling their information from multiple databases (i.e. no SCHEMABINDING allowed).
When I try to import the views into my EDMX file most of the views have a warning saying that they are inferring their primary keys and will be read-only, which I am fine with. A couple of them however error with the message:
Error 6013: The table/view '[Database].dbo.[View]' 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.
These views never get into the EDMX file so I can't assign primary keys for them with VS. The data they're pulling comes from another database so I can't assign primary keys (using SCHEMABINDING) on the database side either.
Any tips on what I might be able to do to force these views into the EDMX file?