Republished with Permission - Original Article
In my previous posts on doing data access using LINQ and ASP.NET, I used the built-in
SQLMetal command-line utility to automatically generate the data model classes
for my LINQ data classes. Recently, I have been using the LINQ for SQL (aka
DLINQ) designer to define my data models and have been really impressed with
how easily it enables me to build a re-usable class library that nicely
encapsulates my data and business logic.
The below walkthrough demonstrates how you can get started
with it yourself. Simply install the LINQ
May CTP download on top of VS 2005 and you can then follow all of the steps
below yourself. For the sample below I am using C#, but everything works
equally well in VB.