--- uid: mvc/videos/mvc-2/how-do-i/creating-model-classes-with-linq-to-sql 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..." ms.author: aspnetcontent manager: wpickett ms.date: 08/20/2008 ms.topic: article ms.assetid: d33d89ca-bb2a-4fb2-a0fa-0b423d710acb ms.technology: dotnet-mvc ms.prod: .net-framework msc.legacyurl: /mvc/videos/mvc-2/how-do-i/creating-model-classes-with-linq-to-sql msc.type: video --- Creating Model Classes with LINQ to SQL ==================== 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) >[!div class="step-by-step"] [Previous](creating-custom-html-helpers.md) [Next](displaying-a-table-of-database-data.md)