-
Notifications
You must be signed in to change notification settings - Fork 228
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
2.1.0-preview1 No suitable constructor found for entity type 'PostgisPoint', works with 2.0.1 . #338
Comments
Can you please post some details on what triggered this? A minimal dbcontext + code would be great. |
maybe use postgisgeometry as the point type, or use a implicit constructor ? https://docs.microsoft.com/en-us/ef/core/modeling/constructors |
https://github.com/PMExtra/NpgsqlConstructorBugDemo |
The class |
Version 2.1.0 introduced support for NetTopologySuite as a way to access PostGIS types - it's a full-blown spatial library with more powerful types, and which also has spatial operations which Npgsql translates to PostGIS functions. Unfortunately support for the legacy PostGIS types (e.g. Am going to close this issue for now (especially as no code sample was provided), but will consider reopening if there's a good reason to bring the legacy types to EF Core (and if more detail is added about this specific issue). |
@roji sample below: https://github.com/PMExtra/NpgsqlConstructorBugDemo |
Just by adding a default (empty) constructor for some entities the error stops showing. Very weird. Any explanation for this? |
The text was updated successfully, but these errors were encountered: