EventAggregator Comparison Demo

EventAggregator Comparison Demo

Ever since I started using Caliburn.Micro I was puzzled why the EventAggregator used an interface in the ViewModel signature, like this public class ShellViewModel : Screen, IShell, IHandle<YourMessageOne>, IHandle<YourMessageTwo>{} Agreed, the documentation is clear, in that you can Cast to see if the view model supports messaging, and if so automatically subscribe. But is that the only advantage? In the few EventAggregators I describe here it’s the only one using this technique. Anyway, a quick search showed that I was…

Read More Read More

AvalonDock v2 and Caliburn Micro

AvalonDock v2 and Caliburn Micro

 AvalonDockCaliburnMicro.zip (2.16 mb) A new version of AvalonDock is due to be released early March. See  http://avalondock.codeplex.com/. I thought I would attempt to integrate with Caliburn Micro, which should be easier now, as v2 of AvalonDock is MVVM compatible. To integrate there are two ways that I know of, (a.) to create a Custom Attached Property or Behaviour as suggested by Felice Pollano, http//www.felicepollano.com/Trackback.aspx?guid=9dcc8717-eb83-45b5-ac89-2f0d0cf05bde (b.) to create a Custom Convention along the lines that Valeriu Caraulean has done for Telerik…

Read More Read More

Upgrade to BlogEngine 2.5.0.32 and new Hosting Provider

Upgrade to BlogEngine 2.5.0.32 and new Hosting Provider

This time all went very smoothly. Storage of post attachments is built in, and BlogML worked like a dream…Lets hope the testing goes smoothly too! File attachments via the new File Manager and SQL tables works, but alas the link into the post does not. So you won’t be able to access this file.   It does now because I’ve manually changed the link because urlrewriting is not working. TestTextFile.txt (65.00 bytes) TestTextFile.txt (65.00 bytes)

Quick test post after restoring the database

Quick test post after restoring the database

Am I going to be lucky…..This blog was reporting that the transaction log was full and nothing could be posted. As with anything to do with SQL Server, there is a huge amount of documentation to plough through and Google searches didn’t seem to show up a solution quickly. I couldn’t even backup the database, as that was what was showing me the error message. So I tried the Import and Export Data tool. This is a great tool just…

Read More Read More

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

Caliburn Micro, MEF and multiple modules

Caliburn Micro, MEF and multiple modules

I’ve been looking at the Caliburn Micro Framework for a new WPF desktop application I need to write. This app is to replace another I wrote in 2006 using the Composite Application Block. So I was reviewing some of the more recent frameworks such as Prism and discovered both Caliburn and Caliburn Micro on Codeplex. Caliburn Micro is a very lightweight framework for helping you build MVVM applications by handling all the plumbing between the View and the ViewModel. It…

Read More Read More

Free Software Project Hosting with Version Control

Free Software Project Hosting with Version Control

I’ve decided to try a hosted version control solution for a new private software project, instead of the local file based solution I have presently. My first criterion is that private project hosting is available, and for convenience multiple projects should be possible. Which version control system was not particularly important but likely to be SVN, and of course I use TortoiseSVNon my PC. Google is of course the first stop in the search for the hosting, and it quickly…

Read More Read More

ISAPI_Rewrite : a complete disaster!

ISAPI_Rewrite : a complete disaster!

I have been aware for some time about URL Rewriting on Apache via a .htaccess file. But recently working with Umbraco I discovered that version 4 incorporated a rewriting library to enable its use in virtual directories and provide friendly URLs, http://www.urlrewriting.net/149/en/home.html.   Some further research showed quite a number of rewriting libraries for IIS using ISAPI or HTTPModules:- http://www.helicontech.com/isapi_rewrite/ http://urlrewriter.codeplex.com/ http://iirf.codeplex.com/ and Brendan Kowitz makes some interesting points in a 2006 blog entries, here. What was more surprising was that…

Read More Read More