How to Use IDisposable with LINQ

Objects that implement IDisposable are everywhere. The interface even gets its own language features (C#, VB, F#). However, LINQ throws a few wrenches into things:

LINQ’s query syntax depends on expressions; using blocks are statements.
When querying a sequence of IDisposable objects, there’s no easy way to ensure disposal after each element has been consumed.
Returning deferred queries [...]

Tags: , , , ,

Read Users' Comments (0)

How to Execute Arbitrary SQL using LINQ to SQL [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL to execute arbitrary SQL against a database.

Tags: ,

Read Users' Comments (0)

How to Update a Table with LINQ to SQL and Stored Procedures [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL and stored procedures to update a table.

Tags: , ,

Read Users' Comments (0)

How to Use Stored Procedures with LINQ to SQL [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL with stored procedures.

Tags: , ,

Read Users' Comments (0)

How to Create a Custom LINQ to SQL LinqDataSource [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of creating a custom LINQ to SQL LinqDataSource.

Tags: ,

Read Users' Comments (0)

How to Use the LINQ to SQL LinqDataSource [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using the LINQ to SQL LinqDataSource.

Tags: ,

Read Users' Comments (0)

How to Update a Database Using LINQ to SQL [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL to update a table in a database.

Tags: ,

Read Users' Comments (0)

How to Use LINQ to SQL to Query a Database [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL to query a database.

Tags: ,

Read Users' Comments (0)

How to Use the LINQ to SQL Data Model – [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using the LINQ to SQL data model for developing applications with LINQ to SQL.

Tags: ,

Read Users' Comments (0)

LINQ to SQL – An Overview [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an overview of LINQ to SQL, and how it can change the way you develop applications.

Tags: ,

Read Users' Comments (0)