title: "Creating Model Classes with LINQ to SQL | Microsoft Docs"
author: StephenWalther
description: "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..."
by [Stephen Walther](https://github.com/StephenWalther)
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.
[▶ Watch video (24 minutes)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/creating-model-classes-with-linq-to-sql)