DynamicDataExtensions.LoadWith<TEntity> Method (LinqDataSource)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public static void LoadWith<TEntity>(
	this LinqDataSource dataSource
)

Parameters

dataSource
Type: System.Web.UI.WebControls.LinqDataSource

The LINQ data source to load the foreign keys from.

Type Parameters

TEntity

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

.NET Framework
Available since 4.0
Return to top
Show: