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.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
public: [ExtensionAttribute] static void LoadWithForeignKeys( LinqDataSource^ dataSource, Type^ rowType )
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
Available since 3.5
Show: