Tools

Just as there are some tips I want to make you aware of before you actually need them, there are some tools that can make your life easier. Again, I may be bringing these up before they make sense to you, but I want you to be aware of them and how they can facilitate and accelerate your adoption of LINQ to SQL.

SQLMetal

While I have yet to discuss the different ways to create the entity classes necessary to use LINQ to SQL with a database, you should know that the easiest way to generate all entity classes for an entire database, if you do not already have business classes, is with the SQLMetal program. You can find this tool in your %windir%\Microsoft.NET\Framework\v3.5 directory. SQLMetal allows you to specify a database, and it will ...

Get Pro LINQ: Language Integrated Query in C# 2008 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.