Struggling to get View Generation working with ED and EF5?

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
EdB
Posts: 92
Joined: Mon 15 Oct 2012 09:24

Struggling to get View Generation working with ED and EF5?

Post by EdB » Thu 08 May 2014 09:56

Hi,

I am using ED 5.7.342.

I am using EF5 and I am experiencing an initial load penalty for my pages when EF queries are being compiled. So I want to precompile my EF Views. I have checked "View Generation" in "Model Settings" and generated POCO entities. The generation is definitely doing something extra, as evidenced by the progress bar, however I cannot see any extra file(s). I was expecting to see something similar to MyApp.pregenerated.views.cs like what EF Powertools does when it pregenerates. I hasten to add I have not experienced any improvement which makes me think that this EF View Generation step has not worked.

Many thanks,

Edward

EdB
Posts: 92
Joined: Mon 15 Oct 2012 09:24

Re: Struggling to get View Generation working with ED and EF5?

Post by EdB » Thu 08 May 2014 13:33

I am now seeing the MyApp.PregeneratedViews.cs file. So yes it is being generated. However I cannot get the benefit with my complex types.

Ed

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Struggling to get View Generation working with ED and EF5?

Post by Shalex » Mon 12 May 2014 14:34


Post Reply