Update Detached Entities

September 29, 2008 at 3:00 pm (.NET, LINQ, SQL)

Probably one of the most asked questions with LINQ to SQL, is how do you update detached entities. Often people will simply resort to doing a SELECT to get the entity into the datacontext and then update the data.

Steve Michelotti describes how to do it here:


and if your entity has child objects check this post out:



Permalink Leave a Comment

ASP.NET Debugging

March 28, 2008 at 10:36 am (.NET, ASP.NET, Blogroll)

For help with debugging ASP.NET issue especially on production servers. The following 2 blogs provide very valuable information as to inner working of ASP.NET.



Permalink Leave a Comment

Moq – An Awesome .NET Mocking Framework

March 20, 2008 at 12:34 am (.NET, Mock, Testing)

I came across Moq a mocking framework specifically designed for .NET 3.5. You know when you hear that lambda expressions are going to be used heavily…and they are.

But, that’s a good great thing. You just need to start using it in a couple of tests and bam! before you know it, it will seem intuitive to you.

Oh and btw the document is not bad at all and full of examples to get you started.

Permalink Leave a Comment