LINQ (How Do I in Visual Basic Express)
This page links to documentation about widely used Visual Basic LINQ tasks. To see other categories of popular tasks covered in Help, see How Do I in Visual Basic Express.
Note
If you are using Visual Basic Express, some of the Help links on this page may be unavailable, depending on the options that you selected during installation. For more information, see Troubleshooting Visual Basic Express.
In Visual Basic Express
Visual Basic Express includes tools for adding data to your application and connecting it.
Using LINQ in Visual Basic Express
Provides an overview of Language-Integrated Query (LINQ) and provides links to topics that describe how to use LINQ to query data.Creating LINQ to SQL Classes: Using the O/R Designer
Demonstrates how to use the O/R Designer to crate LINQ to SQL classes and then bind the data to controls on a Windows Form.Using LINQ to Bind Data to Controls
Explains how to write a LINQ query and bind the results of the query to a control on a Windows Form.Including XML Directly in Your Code: Using XML Literals
Demonstrates how to use XML literals in your Visual Basic code.
In MSDN Library for Microsoft Visual Studio 2008 Express Editions
Introduction to LINQ in Visual Basic
Provides an in-depth description of LINQ for Visual Basic users.Getting Started with LINQ in Visual Basic
Provides background information about LINQ queries.Walkthrough: Writing Queries in Visual Basic
Shows how to create queries on a list of objects, how to run the queries, and how to modify them.
How to Use LINQ to Objects
LINQ to Objects
Introduces a section of How-to topics for using LINQ with in-memory collections.How to: Find the Set Difference Between Two Lists (LINQ)
Shows how to use the Except method to retrieve the items that are in one file but not in another.
How to Use LINQ to SQL
Getting Started (LINQ to SQL)
Provides an introduction and guide for using LINQ to SQL.What You Can Do With LINQ to SQL
Demonstrates key database operations in LINQ to SQL: selecting, inserting, updating, and deleting.How to: Query a Database by Using LINQ (Visual Basic)
Provides an example of how to connect to a SQL Server database and execute a query by using LINQ.How to: Call a Stored Procedure by Using LINQ (Visual Basic)
Provides an example of how to connect to a SQL Server database and call a stored procedure by using LINQ.How to: Modify Data in a Database by Using LINQ (Visual Basic)
Provides an example of how to connect to a SQL Server database and retrieve and modify data by using LINQ.How to: Sort a Collection by Using LINQ (Visual Basic)
Provides an example of how to order the results of a query by using LINQ.How to: Filter Query Results by Using LINQ (Visual Basic)
Provides an example of how to include search criteria in a query by using LINQ.How to: Count, Sum, or Average Data by Using LINQ (Visual Basic)
Provides examples of how to include aggregate functions to Count, Sum, or Average data returned from a query by using LINQ.How to: Find the Minimum or Maximum Value in a Query Result by Using LINQ (Visual Basic)
Provides examples of how to include aggregate functions to determine the minimum and maximum values of data returned from a query by using LINQ.How to: Return a LINQ Query Result as a Specific Type (Visual Basic)
Provides an example of how to return the results of a LINQ query as a specific type instead of as an anonymous type.The LINQ to SQL Object Model
Shows how an object model corresponds to the data model of a relational database.Typical Steps for Using LINQ to SQL
Lists the steps to follow to implement a LINQ to SQL application, with links to supporting information at each step.Walkthrough: Simple Object Model and Query (Visual Basic) (LINQ to SQL)
Shows how to create an entity class that models a table in a database, and how to create a simple query.Walkthrough: Querying Across Relationships (Visual Basic) (LINQ to SQL)
Shows how to query across tables that have been mapped into a hierarchical object relationship.Walkthrough: Manipulating Data (Visual Basic) (LINQ to SQL)
Shows how to add, update, delete, and modify data in a database.Walkthrough: Using Only Stored Procedures (Visual Basic) (LINQ to SQL)
Shows how to use stored procedures in LINQ to SQL.How to: Display Generated SQL (LINQ to SQL)
Shows how to display and view the SQL that is generated and issued to the database by the LINQ to SQL runtime.How to: Directly Execute SQL Queries (LINQ to SQL)
Shows how to issue SQL commands instead of a LINQ query.O/R Designer Overview
Provides an introduction to using the visual design tool for creating LINQ to SQL entity classes and associations that are based on objects in a database.How to: Add LINQ to SQL Classes to a Project (O/R Designer)
Shows how to use the Add New Item dialog box to add LINQ to SQL files to projects.How to: Create DataContext Methods Mapped to Stored Procedures and Functions (O/R Designer)
Shows how to add stored procedures to the O/R Designer as DataContext methods.Walkthrough: Creating LINQ to SQL Classes (O/R Designer)
Shows how to create entity classes that are based on objects in a database, and how to display the data on a Windows Form.
How to Use LINQ to XML
How to: Enable XML IntelliSense in Visual Basic
Shows how to add an XML schema to a Visual Basic project to provide XML IntelliSense that shows possible attributes, child elements, or descendant elements for XML literals.How to: Create XML Literals (Visual Basic)
Shows how to create an XML element in code by using an XML literal.How to: Embed Expressions in XML Literals
Shows how to use embedded expressions in XML literals to create content at run time.How to: Access XML Descendant Elements (Visual Basic)
Shows how to use a descendant axis property to access all XML elements that have a specified name and that are contained under a specified XML element.How to: Access XML Child Elements (Visual Basic)
Shows how to use a child axis property to access all XML child elements that have a specified name in an XML element.How to: Access XML Attributes (Visual Basic)
Shows how to use an attribute axis property to access all XML attributes that have a specified name in an XML element.How to: Declare and Use XML Namespace Prefixes
Shows how to declare an XML namespace prefix and use it to create and access XML elements.How to: Load XML from a File, String, or Stream (Visual Basic)
Shows how to populate an XML literal from a string, file, or stream.How to: Modify XML Literals (Visual Basic)
Shows how to modify the contents of an existing XML literal. This includes adding and removing elements and attributes and modifying element and attribute values.How to: Transform XML by Using LINQ (Visual Basic)
Shows how to transform the contents of an XML literal into a new format.
How to Use LINQ to DataSet
Loading Data Into a DataSet
Describes how to load data into a dataset.Single-Table Queries (LINQ to DataSet)
Describes how to perform queries against a single table in a dataset.Cross-Table Queries (LINQ to DataSet)
Describes how to perform queries across multiple tables in a dataset.Querying Typed DataSets
Describes how to perform queries against typed datasets.LINQ to DataSet Examples
Provides many examples of how to perform various query operations, such as restriction, projection, ordering, and partitioning.
Other Resources
These Web sites are excellent resources for finding more information, seeing what other Express users are doing, and remaining a part of the Visual Basic Express community as it grows.
Visual Basic Developer Center
Central location for information about Visual Basic. Includes case studies, new tools, and other downloads.Beginner Developer Learning Center
Central location for learning materials for the beginner developer. Includes video tutorials, articles, the How-To Reference Library, and Kid's Corner.Coding4Fun
Includes lots of articles and coding tips for the Visual Basic Express developer.Visual Basic 6.0 Resource Center
Provides help for developers who want to upgrade Visual Basic 6.0 applications.