DynamicDataExtensions.LoadWith<TEntity>(LinqDataSource) Method

Definition

Sets the DataLoadOptions value of a LINQ-to-SQL data source to force all the foreign-key entities to be loaded.

C#
public static void LoadWith<TEntity>(this System.Web.UI.WebControls.LinqDataSource dataSource);

Type Parameters

TEntity

The type of the entities that are returned by the data source.

Parameters

dataSource
LinqDataSource

The LINQ data source to load the foreign keys from.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1