Optimistic concurrency using a SQL DateTime in Entity Framework 4.0 31 May 2010 Diederik-Krols .NET 4.0, Entity Framework 4.0, SQL Server, WPF This article explains how to implement optimistic concurrency checking using a SQL Server DateTime or DateTime2 column. It's a follow-up of my previous article on using a TimeStamp column for that same purpose. In most -if not all- concurrency checking cases it actually makes more sense to use a Dat... [More]
Lambda Curry 24 May 2010 Kris-Vandermotten .NET Note: if you’re looking for lamb curry, you came to the wrong place. This post is about C# programming techniques. Currying a function is a technique named after Haskell Curry, to transform a function with multiple parameters into a series of functions having one parameter each. The technique is im... [More]
Self-Tracking Entities with Validation and Tracking State Change Notification 18 May 2010 Diederik-Krols .NET 4.0, WPF, Entity Framework 4.0 This article explains how to extend Self-Tracking Entities (STE) from Entity Framework (EF) 4.0 with validation logic and (tracking) state change notification, with just minimal impact on the T4 files. We'll build a two-tier application that submits local changes in a WPF application via a WCF servi... [More]
Keeping a file checked out after check-in with Team System 11 May 2010 Peter-Himschoot Team System, VS2010 This week I got a question whether it is still possible to keep some file checked-out during a check-in. This is something you can do with Source Safe for example. To be honest I had no idea if this is possible, so I decided to have a look. So the answer is yes (although in general I think this is d... [More]
Optimistic concurrency using a SQL Timestamp in Entity Framework 4.0 04 May 2010 Diederik-Krols .NET 4.0, WPF, Entity Framework 4.0 This article explains how to implement optimistic concurrency checking in the Entity Framework 4.0, using a SQL Server Timestamp column. But you could have derived that from its title. What is a Timestamp? Despite its name, the SQL Server Timestamp data type has nothing to do with time. DateTime2 ... [More]
WPF 4.0 and Windows 7: get more Functionality per Square Inch 03 May 2010 Diederik-Krols .NET 4.0, WPF The Windows 7 taskbar comes with nice features like a thumbnail preview with clickable thumb buttons, a progress bar in the taskbar item, and jump list items and task items in its context menu. Access to the shell integration API from the managed world is done through the System.Windows.Sh... [More]