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

Article on CosmosDB's geospatial types should disclose that EF Core does not support them #84374

Closed
daiplusplus opened this issue Nov 24, 2021 · 3 comments

Comments

@daiplusplus
Copy link
Contributor

daiplusplus commented Nov 24, 2021

It's commonplace for developers to use CosmosDB via Entity Framework Core, however as of late 2021 EF Core still does not support using CosmosDB's geospatial types as complex-value-types in EF entity classes:

And this is becoming a gotcha for users unfamiliar with how EF works and that EF is fully separate from CosmosDB, for example: https://stackoverflow.com/q/60949543/159145

So a simple advisory in this article that makes it clear that using CosmosDB's own complex-types will not work when going through an ORM layer, like EF Core, instead of using CosmosDB's client lib/API directly.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@Grace-MacJones-MSFT
Copy link
Contributor

Hi @Jehoel, thanks for bringing this to our attention. I have assigned the issue to the content author to evaluate and update this doc as appropriate

@markjbrown
Copy link
Contributor

#assign:markjbrown

@markjbrown
Copy link
Contributor

Thanks @Jehoel for your feedback and apologies for the very slow response.

Yes, EF does not yet have spatial support. I have made a note in that article to clearly call out there is no support for it today.

This change is now in a PR and should publish by tomorrow.

Thanks again for your help.

#please-close

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

No branches or pull requests

7 participants