ASPxDashboard.CustomAssemblyLoading Event
Occurs before a custom assembly is loaded for use as DashboardEFDataSource.
Namespace: DevExpress.DashboardWeb
Assembly: DevExpress.Dashboard.v18.2.Web.WebForms.dll
Declaration
Event Data
The CustomAssemblyLoading event's data class is CustomAssemblyLoadingWebEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
AllowLoading | Gets or sets whether loading a custom assembly is allowed. Inherited from DashboardCustomAssemblyLoadingEventArgs. |
AssemblyPath | Gets the path to the external assembly containing the Entity Framework model. Inherited from DashboardCustomAssemblyLoadingEventArgs. |
ContextName | Gets the name of the Entity Framework context. Inherited from DashboardCustomAssemblyLoadingEventArgs. |
DashboardId | Gets the dashboard identifier. |
DataSourceComponentName | Gets the component name of the Entity Framework data source. Inherited from DashboardCustomAssemblyLoadingEventArgs. |
DataSourceName | Gets the name of the Entity Framework data source. Inherited from DashboardCustomAssemblyLoadingEventArgs. |
Remarks
If data for the DashboardEFDataSource is provided using the external assembly containing the Entity Framework model (the EFDataSource.CustomAssemblyPath), the ASPxDashboard throws CustomAssemblyLoadingProhibitedException. You can use the CustomAssemblyLoading event to allow loading a custom assembly. To do this, set the DashboardCustomAssemblyLoadingEventArgs.AllowLoading event parameter to true.