Print Page | Close Window

Precompiling EF views for DevForce

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3366
Printed Date: 02-Jun-2025 at 12:25pm


Topic: Precompiling EF views for DevForce
Posted By: katit
Subject: Precompiling EF views for DevForce
Date Posted: 30-Mar-2012 at 9:30am
I'm reading this article and looks like I'm missing something..
 
http://drc.ideablade.com/xwiki/bin/view/Documentation/precompile-views - http://drc.ideablade.com/xwiki/bin/view/Documentation/precompile-views
 
 
I'm not using Code First. And I can't locate DbContext object. All I have is Model.IB.Designer.cs generated by DevForce.
 
How do I precompile views in this case?



Replies:
Posted By: DenisK
Date Posted: 30-Mar-2012 at 6:19pm
Hi katit;

That topic is intended mainly for Code First. Please see  http://drc.ideablade.com/xwiki/bin/view/Documentation/query-performance#HEntityFrameworkperformancetips - http://drc.ideablade.com/xwiki/bin/view/Documentation/query-performance#HEntityFrameworkperformancetips  if you want to pre-compile views for non Code First model.


Posted By: DenisK
Date Posted: 10-Apr-2012 at 4:04pm
In case anyone is interested, EF Power Tools, which is the tool being used to pre-compile views for Code First, now has the same pre-compile views command for database first and model first.

http://blogs.msdn.com/b/adonet/archive/2012/04/09/ef-power-tools-beta-2-available.aspx - http://blogs.msdn.com/b/adonet/archive/2012/04/09/ef-power-tools-beta-2-available.aspx


Posted By: katit
Date Posted: 10-Apr-2012 at 4:38pm
Excellent. I started to read articles but never got around to actually use command-line tools. Will give it another try!



Print Page | Close Window