This documentation is archived and is not being maintained.

How to: Filter at the DataContext Level (LINQ to SQL)

You can filter EntitySets at the DataContext level. Such filters apply to all queries done with that DataContext instance.

In the following example, DataLoadOptions::AssociateWith(LambdaExpression) is used to filter the pre-loaded orders for customers by ShippedDate.

No code example is currently available or this language may not be supported.
Show: