-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when including list of Point #3169
Comments
I'm also having a similar error related to byte arrays. In my case it's when querying with an optional ULID column with that is mapped to nullable bytea, using
It also worked without problems with Npgsql 7/EFCore 7. Is the repro provided by the OP enough or should I also create one? // Edit: If anyone else comes across this post before it's fixed (since Google shows this at the top), you can create your own contains expression to get around this, this should help: https://stackoverflow.com/a/9678266/483084 |
Hi, any news on this ? I have the exact same problem and it prevents me to migrate my project correctly in .NET 8 . |
Thanks for raising this and sorry it took so long to get looked at. I can confirm there's a bug here - I'm pushing a fix and will backport it to the next release of 8.0.x. |
@roji, made my day! |
@hakanderyal I'm not sure your problem is the same as this one... Can you please open a new issue with a repro? |
I believe it's the same issue, it occurs at the same location which you've changed. I'll open a new one if it continues after the release. Thanks! |
Dear Team,
I am currently experiencing an exception with a List of Point while utilizing Entity Framework (EF) and PostgreSQL with PostGIS. The issue arose during the transition from .NET 7 to .NET 8, as the functionality was operating correctly in the former. Upon moving to .NET 8, I am unable to retrieve data due to the exception detailed in the related issue: #2975.
To facilitate the reproduction of the problem, I have prepared a minimal repository: https://github.com/workpioupiou/ErrorNpgsql. By executing the command "dotnet ef migrations add Initial --project ErrorNpgsql", the following error is generated:
"Unable to create a 'DbContext' of type ''. The exception 'When building an array mapping over 'Point', the JsonValueReaderWriter for element mapping 'NpgsqlGeometryTypeMapping`1' is incorrect ('NpgsqlJsonGeometryWktReaderWriter' instead of 'NetTopologySuite.Geometries.Point').' was thrown while attempting to create an instance."
As a temporary workaround, I have moved the List of Point into a new class, PositionPoint, which contains an ID and a property point. However, this solution required the deletion of the migrations files and the database.
I would greatly appreciate any insights or potential solutions to resolve this issue without having to delete the migrations files and the database.
Become :
Thank you for your time and assistance.
The text was updated successfully, but these errors were encountered: