LoadWithForeignKeys Method

DynamicDataExtensions.LoadWithForeignKeys Method (LinqDataSource, Type)

.NET Framework (current version)
 

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)

static member LoadWithForeignKeys : 
        dataSource:LinqDataSource *
        rowType:Type -> unit

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:
© 2016 Microsoft