Skip to main content

Posts

Showing posts with the label repository

Pre-Generating Views in Entity Framework .NET 4.0

  UPDATED ON: 16/09/2010 If you’re using Entity Framework chances are you’ve come up against performance issues already, especially when instantiating your Object Context. One very reliable way to increase performance is to pre-generate the Views. Depending on the size of your model and in my experience it can shave as much as 40% off the instantiation time. There is a good overview on MSDN , however it only covers .NET 3.5. Step 1 Go to your Model properties and select “ Copy to Output Directory ” for the Metadata Artifact Processing option. The result of this is you will end up with the .ssdl, .csdl and .msl files in your output directory which in this case is bin/Debug. Step 2 Next you need to setup the Pre-build event to use the EDMGen.exe tool. NB: If you use the Command on the MSDN site you will come across this error. “The required parameter ‘mode’ is missing” The correct command to use is: "%windir%\Microsoft.NET\Framework\ v4.0....

KandaAlpha DDD Architecture - MVC, Repository, Entity Framework, db4o on Codeplex

Keith Patton has started a CodePlex project called KandaAlpha which I will be contributing to. Original post here The aim of the project is get our feet wet with Visual Studio 2010 Beta 1 and in particular the POCO capabilities of Entity Framework. It's also going to try and demonstrate best practice Domain Driven Design and other associated patterns. db4o has been selected as the persistancy database of choice as it presents a very interesting alternative to the standard RDBMS.