Closed JustArchi closed 10 months ago
We're facing the same issue, the model works without pre-compiled model, but throws the "System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values." exception when trying to generate the optimized model. We attempted the following solutions without success:
Can you please reopen this in the EF Core repo? This doesn't seem to be related to the Npgsql provider.
Reopening since after fixing the EF-side issue (#32659), there's an issue on our side.
Note that after these fixes, arrays with value converters are still incompatible with the compiled model - see https://github.com/dotnet/efcore/issues/32717.
@roji informational, it's probably intended if I understand your notes correctly, but for reference, this issue still applies to Npgsql.EntityFrameworkCore.PostgreSQL
in version 8.0.2
.
Not sure if you want to keep it closed or opened, up to you :+1:.
@JustArchi yeah, that's expected - the problem is on the EF side with https://github.com/dotnet/efcore/issues/32717. I've opened #3104 to track this on our side - you can subscribe to that for updates etc.
Minimum working repro:
This worked fine in EF Core 7 (.NET 7). After update to 8.0.0, it now gives error during
dotnet ef dbcontext optimize
:/cc @roji