Muokkaa

Jaa


LINQ in Visual Basic

This section contains overviews, examples, and background information that will help you understand and use Visual Basic and Language-Integrated Query (LINQ).

In This Section

Introduction to LINQ in Visual Basic
Provides an introduction to LINQ providers, operators, query structure, and language features.

How to: Query a Database
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
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
Provides an example of how to connect to a SQL Server database and retrieve and modify data by using LINQ.

How to: Combine Data with Joins
Provides examples of how to join data in a manner similar to database joins by using LINQ.

How to: Sort Query Results
Provides an example of how to order the results of a query by using LINQ.

How to: Filter Query Results
Provides an example of how to include search criteria in a query by using LINQ.

How to: Count, Sum, or Average Data
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
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
Provides an example of how to return the results of a LINQ query as a specific type instead of as an anonymous type.

See also