Browsed by
Month: October 2010

Custom EFDAL generator for nHydrate

Custom EFDAL generator for nHydrate

nHydrateis a model first ORM code generator on codeplex, and can be used to generate Entity Framework DAL layer. But unlike the designer in Visual Studio it is text based, but this is not a disadvantage as nHydrate offers greater features such as built in row auditing and incremental database management. As any development team knows version 1 of your application is easy, but version 2 is likely to have database schema changes. The incremental database management keeps a track…

Read More Read More

Entity Framework Starter Kit alternative

Entity Framework Starter Kit alternative

  The Entity Framework 4 has superb  features for custom code generation and there are now quite a few different T4 code generators being released. You can see them easily in VS2010 Extension Manager, and include the ADO.NET C# POCO and C# Web Site POCO Entity Generators and the one I particularly like, Rob Hallett’s method of Unit testing Entity Framework classes, see  http://blogofrab.blogspot.com/2010/08/unit-testing-entity-framework-40.html To start writing your own generator, a Entity Framework Starter Kit is available, as documented here…

Read More Read More

Customising csproj build scripts

Customising csproj build scripts

Here’s an item I need to blog about because in a few months I will have forgotten the details. First, the verbosity of Visual Studio MSBuild messages. Go to Tools > Options > Project and Solutions > Build and Run. Set the build output verbosity to Normal. Would appear that the VS install default is Minimal. Now you’ve done that, you can edit your csproj file to add some custom targets where you’ll actually see any messages in the output…

Read More Read More