Page 1 of 1

Struggling to get View Generation working with ED and EF5?

Posted: Thu 08 May 2014 09:56
by EdB
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

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

Posted: Thu 08 May 2014 13:33
by EdB
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

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

Posted: Mon 12 May 2014 14:34
by Shalex