-
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)
-
0
hi
Can you share some screenshots? Are you using Blazor WASM or Blazor Server?
-
0
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.IDistributedCache
1[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.
-
0
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.