DynamicDataExtensions.LoadWithForeignKeys(LinqDataSource, Type) 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 LoadWithForeignKeys(this System.Web.UI.WebControls.LinqDataSource dataSource, Type rowType);

Parameters

dataSource
LinqDataSource

The LINQ data source to load the foreign keys from.

rowType
Type

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

Remarks

For more information, see the System.Data.Linq.DataLoadOptions class overview.

Applies to

Product Versions
.NET Framework 3.5, 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