How to execute LINQ TO SQL within a T4 Template? - by NewT4 Is it possible to execute a SQL (TSQL or Linq To SQL) from within a T4 Template so that the schema information from a table can be used to customized the code generation? Thanks Read the article