There won’t be T4 templates for LINQ to SQL in-the-box but I’ll be continuing to update the LINQ to SQL T4 template on CodePlex at http://l2st4.codeplex.com which right now ...
http://l2st4.codeplex.com/ http://oakleafblog.blogspot.com/2008/07/bidirectional-serialization-of-linq-to.html; After you download and install the template, make the following ...
I believe they will fix it in the next release of Visual Studio, but for now, there is another solution from my hero damieng at CodePlex: http://www.codeplex.com/l2st4.
Damien discusses the T4 templates in EF/VS2010 as well as the LINQ to SQL T4 templates he’s released on CodePlex as L2ST4. New features in EF 4 (LINQ operators, ObjectSet)
... T4 template with the same name as the dbml file name. e.g. Northwind.dbml -> Northwind.tt (almost all code stolen from here, so look here if you need help http://l2st4.codeplex.com