7 blog posts tagged T4

LINQ to SQL resources

  • πŸ“…
  • πŸ“ 723
  • πŸ•™ 4
  • πŸ“¦ .NET

A quick round-up of some useful LINQ to SQL related resources that are available for developers. I’ve not used everything on this list myself so don’t take this as personal endorsement.

Note: While the T4 templating language is built-in to Visual Studio 2008/2010 it does not come with syntax highlighting or IntelliSense. Check out either:

Multiple outputs from T4 made easy

  • πŸ“…
  • πŸ“ 972
  • πŸ•™ 5
  • πŸ“¦ .NET
  • πŸ’¬ 14

An improved version is now available.

One of the things I wanted my LINQ to SQL T4 templates to do was be able to split the output into a file-per-entity. Existing solutions used either a separate set of templates with duplicate code or intrusive handling code throughout the template. Here’s my helper class to abstract the problem away from what is already complicated enough template code.

LINQ to SQL templates updated, now on CodePlex

  • πŸ“…
  • πŸ“ 212
  • πŸ•™ 1
  • πŸ“¦ .NET
  • πŸ’¬ 12

This post is over 10 years old. These templates are no longer maintained and the information may be outdated.

My templates that allow you to customize the LINQ to SQL code-generation process (normally performed by SQLMetal/LINQ to SQL classes designer) have been updated once again.

LINQ to SQL T4 template reloaded

  • πŸ“…
  • πŸ“ 344
  • πŸ•™ 2
  • πŸ“¦ .NET
  • πŸ’¬ 10

A newer version of this LINQ to SQL template is available.

The topic of modifying the code generation phase of LINQ to SQL comes up quite often and the limited T4 template I published here last month was good at showing the potential but wasn’t a practical replacement for the code generation phase.