Open Closed

CS0104 ambiguous reference errors when adding entities in Suite #1103


User avatar
0
Sturla created

Hi

I'm getting CS0104 ambiguous reference errors when adding entities in Suite. Unique namespaces don´t seem to be enough.

Here are two examples of this

1.

First I had this one

C:\Dev\Test\aspnet-core\src\Test.EntityFrameworkCore\EntityFrameworkCore\TestEntityFrameworkCoreModule.cs(55,49): error CS0104: 'EfCoreLanguageRepository' is an ambiguous reference between 'Test.Languages.EfCoreLanguageRepository' and 'Volo.Abp.LanguageManagement.EntityFrameworkCore.EfCoreLanguageRepository' [C:\Dev\Test\aspnet-core\src\Test.EntityFrameworkCore\Test.EntityFrameworkCore.csproj]

For now, I´ll call it "OurLanguages" (or something.. naming is hard) but I would prefer it just being Language and the DB table AppLanguage.

2.

And now I just had this one that I find even stranger

error CS0104: 'TimeZone' is an ambiguous reference between 'Test.TimeZones.TimeZone' and 'System.TimeZone'

Why

Your ABP Framework version. 4.2.2 Your database provider: EF Core Blazor


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    I think both of them are related to the same entity name. I already created an issue for this. Can you change them manually on your generated code for a quick workaround?

  • User Avatar
    0
    Sturla created

    Yes I'm still in my test phase. I'm aiming on using version 4.3 so hopefully it will be ready when I´m :-)

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