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: 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

    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.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07