CodeSmith template to generate LINQ To SQL Data Context
- đź“…
- đź“ť 1,048 words
- đź•™ 5 minutes
- 📦 .NET
- 🏷️ CodeSmith, LINQ
- đź’¬ 2 responses
If you are interested in what LINQ to SQL generates and don’t have Orcas installed or available right now but use CodeSmith try the following template to generate very similar code.
The primary difference is that this writes out the System types rather than the C# aliases (e.g. System.Int32 instead of int) but that could easily be changed but is binary compatible and otherwise almost identical to the source.