July 2008 Entries
I have been working on a project which uses a data access layer (DAL) to wrap some LINQ to SQL calls to the database. While I've played with LINQ to SQL a bit, this was my first time working on a production application. So as I wrote some of the business logic I wrapped some updates in a transaction (as any good database dev would do). Here's pretty much what it looked like:public void Swap(Product x, Product y){ x.DisplayIndex += y.DisplayIndex; y.DisplayIndex = x.DisplayIndex - y.DisplayIndex; x.DisplayIndex -= y.DisplayIndex; using( System.Transactions.TransactionScope txCtx = new System.Transactions.TransactionScope() )...
I just read an announcement today about Microsoft Visual Studio Middle School Power Toy 1.0. I've always been interested in passing on my love for programming to my kids. I have a 9-year-old who I'd like to introduce to programming in a simple way, but I'm not sure this is quite the tool for the job.While I'm sure this could be a good tool for a child who is already interested in programming and want's to start writing code, I'm not sure this is the kind of tool to introduce programming. As I read the overview, the features discuss learning...
Been wanting to get to this part of development for a while now and since I struggled a bit to get this working I thought it would make a good post. With the release of the .NET Framework 3.5 WCF seems to be growing in popularity (or maybe it's just me), but since WCF seems to be the replacement for WebSerivices I figure I need to get to know it.In my last post on WCF I didn't use any client, other than just pointing the browser window at the service address for an operation with no parameters and a return...