Closed kobruleht closed 3 years ago
Duplicate of https://github.com/dotnet/efcore/issues/26496
This is an EF Core bug (unrelated to Npgsql/PostgreSQL) which has already been fixed for 6.0.1.
6.0.1 is not avaliable in NuGet. How to upgrade to it? Tried to upgrade to daily builds using dotnet7 from
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
but this causes compile error about missing Options class. It looks like this is not compatible with .NET 6 code.
Table ARTOMADU contains composite primary key from two columns, (TOODE, ARTOMALIIK) Those columns are foreign keys to TOODE and ARTOMALIIK tables.
TOODE table contains foreign key to ARTOMALIIK table on column TOOTEPUU
In this case .NET 6 scaffold tries to create duplicate propery name and fails with exception
Table structures: