dashboard-devexpress-dot-dashboardcommon-dot-dashboard-531b0172.md
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
public event DashboardCustomAssemblyLoadingEventHandler CustomAssemblyLoading
Public Event CustomAssemblyLoading As DashboardCustomAssemblyLoadingEventHandler
The CustomAssemblyLoading event's data class is DashboardCustomAssemblyLoadingEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| AllowLoading | Gets or sets whether loading a custom assembly is allowed. |
| AssemblyPath | Gets the path to the external assembly containing the Entity Framework model. |
| ContextName | Gets the name of the Entity Framework context. |
| DataSourceComponentName | Gets the component name of the Entity Framework data source. |
| DataSourceName | Gets the name of the Entity Framework data source. |
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