Mixing table objects with View-ok objects is okay and largely depends on your requirements.
My experience is what you have to face.
When I first started using Entity, I often used views because I was told that I needed to use them. As I became more familiar with Entity, I began to prefer using table entities over view objects; mainly because I felt that I had more control. The views are in order when you present read-only information or as you have described (flattend data, pivots, join, etc.); however, when your requirements change, and now you need to add CRUD, you still have to use stored procedures or change the model to use table permissions, so you could also use table objects from the beginning.
Views contain many and many keys. Looks like specify that I will need to manually edit the EDMX file to delete this Information.
This was not a problem for me. You can cancel the keys of the view object in the designer. If you talk about it for a repository-level view, then yes, you can make it work, but as soon as you update your model from the database, you will have to do it again - I would not recommend it. You are better off working with your DBA to configure key restrictions in the database.
Views have no links to other table elements. These associations must be added manually to link View β Table.
This has often been a problem for me. Sometimes you can add keys and create relationships without any problems, but often you have to change the keys and / or relations in db to make it work - it depends on your requirements; you will have to deal with this even when using table entities.
Hope this helps.
source share