How do I define a database view using Entity Framework 4 Code-First?
That’s because you cannot define database view using code-first approach. Database view is database construct which uses SQL Query on top of existing tables / functions. You can’t define such constructs using code first. If you want view you must create it manually by executing CREATE VIEW SQL script for example in custom initializer – … Read more