Video How to: Simple Object Model and Query (Visual Basic) (LINQ to SQL)

Simple Object Model and Query (Visual Basic) Video How To

Authors: Harry Miller, Kathleen McGrath, Jo Molnar, Microsoft Corporation

Applies to: Microsoft Visual Basic 2008

Length: 00:03:46 | Size: 18.2 MB | Type: WMV file

 

Watch the video

Download the video and transcript

Read the step-by-step article

Video Summary

LINQ to SQL provides a run-time infrastructure for managing relational data as objects. Relational data appears as a collection of two-dimensional tables, where common columns relate tables to each other. In LINQ to SQL, the data model of a relational database is mapped to an object model expressed in Visual Basic.

This video shows you how to create a basic LINQ to SQL application. The following tasks are included in the process:

  • Mapping a class to a database table.

  • Designating properties on the class to represent database columns.

  • Specifying the connection to the database.

  • Creating a simple LINQ query to run against the database.

  • Executing the query and observing the results.

The Visual Basic Help includes the code and the steps that are demonstrated in this video. See Walkthrough: Simple Object Model and Query (Visual Basic) (LINQ to SQL).

Additional Video Resources

Video How Tos

MS Help WorkshopTOC Folder icon Visual Basic Videos

link to videoVideo How to: Writing Queries in Visual Basic

Other Videos

Additional Help Resources