Entity Framework 4.0 and Multiple Data Contexts

In the EF version 1.0, there was a problem when one would try to update multiple contexts as part of a single transaction.  For example, I can use Transaction Scope, the update one context, then second context.  Here is sample code to illustrate:   using (TransactionScope scope = new TransactionScope()) { try { using (RolodexEntities …

Continue reading ‘Entity Framework 4.0 and Multiple Data Contexts’ »

AppFabric Caching (Velocity) and Versioning

To continue on the topic of Velocity, I will explore versioning today. As I showed previously, you can use DataCache.Add method to add an item to cache.  This, of course, requires that this item’s key was not to be found in the cache already, or an exception will be thrown.  This puts a damper on …

Continue reading ‘AppFabric Caching (Velocity) and Versioning’ »

Getting Started with Velocity (AppFabric Caching Library)

I have worked through my first Velocity project today, and I would like to blog about  the steps necessary to use caching. First, you should read my previous post and install AppFabric on your machine. I used Visual Studio 2010 beta 2 to create the solution.  You can download the solution here.  I create WPF …

Continue reading ‘Getting Started with Velocity (AppFabric Caching Library)’ »

Windows Azure Application

This is purely a bragging post 🙂 I just deployed a test application to the cloud (Microsoft Azure): http://rolodex.cloudapp.net/ Here is the technology stack for it: Windows Azure SQL Azure CSLA 3.8.1 Silverlight Entity Framework WCF Prism (Composite Application Guidance) Silverlight Toolkit I promise to write a blog entry in the near future, the steps …

Continue reading ‘Windows Azure Application’ »