Skip to content
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

Geometry and Geography Types Not Being Mapped To DbGeometry and DbGeography #168

Open
john-larson opened this issue Mar 26, 2021 · 5 comments

Comments

@john-larson
Copy link

I am getting the following error when trying to use the geometry or geography types:

Errors Found During Generation:
warning 6005: The data type 'geometry' is currently not supported for the target Entity Framework version;

I am using the latest versions of EF6, Postgre and PostGIS.

@roji
Copy link
Member

roji commented Mar 27, 2021

The PostgreSQL EF6 provider is mostly in archive mode, with no efforts going into it (I'd recommend considering switching to EF Core). I honestly am not sure if DbGeography/DbGeometry support was ever implemented in any way.

@gcapnias
Copy link

I really do not understand this strategy; there are code projects already implemented that need spatial support in EF6. Although, the effort is to support EF Core, for projects that will happen in the future.

There is no way the for all existing production code to be transferred to .NET Core. There are projects that are already commissioned, and will remain in production for the next 5 to 10 years. Why refuse support for the existing projects, projects that already promote PostgreSQL in .NET, for new projects that probably will happen.

@roji
Copy link
Member

roji commented Mar 30, 2021

I really do not understand this strategy [...] Why refuse support for the existing projects [...]

There is no "strategy" here, and nobody is refusing support for anything. This is a volunteer-based, open source project, and none of the maintainers (basically just me at this point) have time for anything beyond critical bug fixes for this project. Just like Entity Framework 6 is no longer being actively developed by Microsoft, the Npgsql EF6 provider also is no longer being actively developed.

Are you interested in putting in the time and preparing a PR adding support for this? If so, please let me know your plans and I may be able to find the time to review and merge it - though I can't be sure of when that would happen.

new projects that probably will happen.

Anyone starting a new project with EF6 at this point is probably making a mistake.

@Emill
Copy link

Emill commented Mar 30, 2021

Does this even work? I thought EF6 only has a limited set of fixed data types that can be supported?

@roji
Copy link
Member

roji commented Mar 30, 2021

I have no idea...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants