'How to make EF detect navigation properties on a view?

I'm using database first with EF 6 and when I add a SQL view it doesn't generate any navigation properties.

Currently we use a hack where we have a table with the same columns and relations as the view which we rename to the view's name when we want to regenerate the EF entities, however this is obviously far from ideal.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source