Open Closed

Blazor module dependency on EntityFrameworkCoreModule #2464


User avatar
0
korolei created
  • ABP Framework version: v5.0.1

  • UI type: Blazor

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes

  • Exception message and stack trace:N/A

  • Steps to reproduce the issue:"N/A

Hi guys,
When ABP layered solution gets created, **BlazorModule **shows dependency on EntityFrameworkCoreModule. What's the reason for a such dependency?

Thanks!


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share some screenshots? Are you using Blazor WASM or Blazor Server?

  • User Avatar
    0
    korolei created

    Hi,
    We're using Blazor Server options.
    Here is dependencies, defined in BlazorModule:
    image.png
    Commenting out that dependency, would lead to the following exception:
    DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.LanguageManagement.DatabaseLanguageProvider' can be invoked with the available services and parameters:
    Cannot resolve parameter 'Volo.Abp.LanguageManagement.ILanguageRepository languageRepository' of constructor 'Void .ctor(Volo.Abp.LanguageManagement.ILanguageRepository, Volo.Abp.ObjectMapping.IObjectMapper1[Volo.Abp.LanguageManagement.LanguageManagementDomainModule], Volo.Abp.Caching.IDistributedCache1[Volo.Abp.LanguageManagement.LanguageListCacheItem], Microsoft.Extensions.Options.IOptions`1[Volo.Abp.Localization.AbpLocalizationOptions])'.
    Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable parameters)

    DependencyResolutionException: An exception was thrown while activating Volo.Abp.LanguageManagement.DatabaseLanguageProvider.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You are using Blazor Server, this is expected.
    It uses a mix of mvc and blazor for UI, it's actually a backend application so requires EF Core.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on June 13, 2025, 11:37