Surprise, when trying to write test code to mock LINQ to SQL’s datacontext object, I could not find IDataContext! Hope Microsoft will add it in offical release. We need unit test.
Found this interesting blog, building Generic DAO using Linq to SQL, idea is identical to NHibernate’s DAO. By doing this, we will have an option to operate data DAO layer instead of DataContext object.