Import of enum types fails

Posts   
 
    
nbbrake
User
Posts: 4
Joined: 03-Dec-2024
# Posted on: 03-Dec-2024 17:21:15   

Hello,

I am evaluating LLBLGen for the generation of EF Core 8 code for Postgresql access.

I use designer 5.11.3. I added a typeimport file named NorthwindPg.typeimports, while the project file is called NorthwindPg.llblgenproj:

<typeImports> <typeImport typeName="NorthwindPg.EnumTypes.*" assemblyFile="Code\Model\bin\Debug\net8.0\NorthwindPg.Model.dll"/> </typeImports>

The file containing the enums is the following:

namespace NorthwindPg.EnumTypes
{
    public enum enum_test
    {
        Test0,
        Test2,
        Test3
    }
}

The code is generated by LLBLGen. When I re-scan the folder I get the following error:

TypeConverterStore::Error importing types from assembly file 'C:\Dev\MIP\Sandbox\Postgresql-in-docker\DAL\Code\Model\bin\Debug\net8.0\NorthwindPg.Model.dll': One or more dependencies couldn't be resolved. Types to import in this assembly will be unavailable.

I also tried to specify the name of the enum I need to import instead of the wild card. In this case I get no error, however, in Tools\View Loaded External Types I cannot find the type.

I would really appreciate your help solving this issue!

Best

Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 03-Dec-2024 23:38:06   

There was a fix for assembly relative paths, could you please try v.5.11.4?

nbbrake
User
Posts: 4
Joined: 03-Dec-2024
# Posted on: 05-Dec-2024 10:57:11   

The only available trial version for download is 5.11.3. Is it possible to make the newer version available for download? That would be great!

nbbrake
User
Posts: 4
Joined: 03-Dec-2024
# Posted on: 05-Dec-2024 11:14:19   

I checked the documentation regarding support Postgresql Enumerations (https://www.postgresql.org/docs/current/datatype-enum.html). Does LLBLGen have support for these types? That would be a great feature!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 06-Dec-2024 09:30:51   

nbbrake wrote:

The only available trial version for download is 5.11.3. Is it possible to make the newer version available for download? That would be great!

No, sorry. We'll release the hotfix as the new version in due time

Regarding your question about postgres enum types: no, we don't support these types

Frans Bouma | Lead developer LLBLGen Pro
nbbrake
User
Posts: 4
Joined: 03-Dec-2024
# Posted on: 18-Dec-2024 17:47:08   

It turned out that my dot.net standard 2.0 assembly was not being read. I changed the project to full framework and the designer now can read the enums and it is working as expected. As I expect to bu building on Windows machines, I think this will be ok. Thank you for your help.