Thinking outside the box

SteelePrice.Net

My Links

Twitter Updates


Get Microsoft Silverlight
follow me

Article Categories

Archives

Post Categories

Image Galleries

Dot Net

General

Linux

OneNote

Windows

TechED Bloggers
Visual Basic Bloggers (OPML)

LINQ to SQL T4 template for Visual Studio 2008

Damien Guard has made his T4 Templates Output to VB (yeah!).

LINQ to SQL T4 template for Visual Studio 2008

The latest update to my template for generating LINQ to SQL classes from DBML is now available.

If you want to customize the LINQ to SQL code generation phase in your project without additional tool dependencies this could be what you’re looking for.

I was looking for a better way to customize the Linq to SQL CodeSpit and this lets us do it from inside Visual Studio in a very painless way.  No extra tools required.  CodeSmith and CodeRush are still quite valueable, but this method integrates very nicely without requiring extra tools.

Thanks to Jim Wooley for pointing me to it, I was not aware how far this had come.

What's T4?  In short, It's Native Code Generation inside Visual Studio 2008 (and 2005 with extensions)

Oleg Sych explains most of it here.

When I first saw this, I did not think it was what I needed, it turns out it was EXACTLY what I needed, I just didn't know it.  This is well worth your time to investigate if you are doing any code generation for LINQ. (or anything else for that matter, T4 doesn't care, you can codegen a UI using XAML or HTML with it quite easily).

posted on Tuesday, September 23, 2008 3:48 AM

Feedback

No comments posted yet.
Post a new comment about this topic
Title  
Name  
Url

Comments   
Enter the code you see:
   

Blogroll Me!

Blog Search Engine

Copyright © 2003-2004 H. Steele Price, IV -
All opinions are my own, not necessarily those of my employer, your mother, or any government agency.