EF6 DB First Pre-Generated Views difficulties <p>The 50 seconds it takes EF to complete it's first query (as compared to milliseconds for the same or similar queries when it's warm) is making my MVC website look bad. I really need to get pre-compiled views working.</p> <p>I have tried the power tools but when I run 'Generate Views' the VS12 output window shows</p> <pre><code>System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.DbContextPackage.Utilities.EdmxUtility.GetMappingCollectionEF6(Assembly ef6Assembly, String&amp; containerName) at Microsoft.DbContextPackage.Handlers.OptimizeContextHandler.OptimizeEdmx(String inputPath) </code></pre> <p>The T4 templates that can generate views seem to be for code first only.</p> <p>How can I get power tools working or is there another way to pre-generate the Views?</p>