Page view counter

Creating Model Classes with LINQ to SQL

Learn how to create data access classes by taking advantage of Microsoft LINQ to SQL. In this video tutorial, you learn how to use a LINQ to SQL DataContext class directly within a controller. You also learn how to use the Repository Pattern to create testable and flexible database-driven applications.

Presented by Stephen Walther

Duration: 24 minutes, 15 seconds

Date: 20 August 2008

Watch the video   |   Download the video

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 6

Leave a Comment

panjkov : On August 21, 2008 8:43 PM said:

I posted sample code in C# for this video on my website

panjkov.qsh.eu/.../entry69.aspx

cv_vikram : On August 27, 2008 7:01 AM said:

Thanks....

pr0ph3t : On August 30, 2008 6:59 AM said:

nice video, i would like to see C# version of code.

Thanks

hpinsley : On November 07, 2008 10:26 PM said:

Thanks Stephen.  One question regarding the repository pattern.  If your interface returns objects that are created by the Linq to SQL designer, aren't you tying your interface -- and by extension the controller -- to a Linq to Sql class?

victortumbel : On November 11, 2008 11:00 PM said:
NikolaR : On November 15, 2008 1:49 PM said:

I hate to reiterate question hpinsley asked.

I guess that was not the point of this screen cast, but in real life scenario we would have to manually create object model and write code that populates it in repository.

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities