EF Core Events
Configuring event handlers for EF Core in Umbraco UI Builder.
Registering Event Handlers
Using the EFCoreQueryBuildingNotification
EFCoreQueryBuildingNotificationExample
public class MyEFCoreQueryBuildingHandler : INotificationHandler<EFCoreQueryBuildingNotification>
{
public void Handle(EFCoreQueryBuildingNotification notification)
{
// Access query properties
var collectionAlias = notification.Args.CollectionAlias;
var entityType = notification.Args.EntityType;
// Modify the IQueryable directly
// notification.Args.Query = ...
}
}Using the EFCoreQueryBuiltNotification
EFCoreQueryBuiltNotificationExample
Registering Event Handlers
Last updated
Was this helpful?