Update Detached Entities
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:
http://geekswithblogs.net/michelotti/archive/2007/12/17/117791.aspx
and if your entity has child objects check this post out:
http://geekswithblogs.net/michelotti/archive/2007/12/30/118076.aspx
ASP.NET Debugging
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.
Moq – An Awesome .NET Mocking Framework
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.