DynamicDataExtensions.LoadWithForeignKeys Method (LinqDataSource, Type)

 

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)

<ExtensionAttribute>
Public Shared Sub LoadWithForeignKeys (
	dataSource As LinqDataSource,
	rowType As Type
)

Parameters

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

The LINQ data source to load the foreign keys from.

rowType
Type: System.Type

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

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

.NET Framework
Available since 3.5
Return to top
Show: