Back to Devexpress

Dashboard.CustomAssemblyLoading Event

dashboard-devexpress-dot-dashboardcommon-dot-dashboard-531b0172.md

latest2.8 KB
Original Source

Dashboard.CustomAssemblyLoading Event

Occurs before a custom assembly is loaded for use as a DashboardEFDataSource.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public event DashboardCustomAssemblyLoadingEventHandler CustomAssemblyLoading
vb
Public Event CustomAssemblyLoading As DashboardCustomAssemblyLoadingEventHandler

Event Data

The CustomAssemblyLoading event's data class is DashboardCustomAssemblyLoadingEventArgs. The following properties provide information specific to this event:

PropertyDescription
AllowLoadingGets or sets whether loading a custom assembly is allowed.
AssemblyPathGets the path to the external assembly containing the Entity Framework model.
ContextNameGets the name of the Entity Framework context.
DataSourceComponentNameGets the component name of the Entity Framework data source.
DataSourceNameGets the name of the Entity Framework data source.

Remarks

The CustomAssemblyLoadingProhibitedException is thrown if the external assembly containing the Entity Framework model provides data for the DashboardEFDataSource.

You can use the CustomAssemblyLoading event to allow loading a custom assembly. To do this, set the DashboardCustomAssemblyLoadingEventArgs.AllowLoading event parameter to true.

See Also

Dashboard Class

Dashboard Members

DevExpress.DashboardCommon Namespace