Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is it possible to use Entity Framework Core 6 with MongoDb?

Is it possible to use EF Core 6 in combination with a MongoDb? From what I’v gathered online, I could only find answers from a few years ago that say that it’s still not possible, but nothing that was published recently. There is also better support for the Azure Cosmos Db which is also a NoSql database, so maybe I could use that to communicate with a MongoDb?

If it’s still not possible, what other approach should I use?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There is no official MongoDb provider implementation for EF core at this time, I did not see any mention of MongoDb in the .net core 7 (the next version) roadmap as of now.

See:
https://docs.microsoft.com/en-us/ef/core/providers/?tabs=dotnet-core-cli

I quickly googled a bit but could not find a recent version of a MongoDb provider.

Msdn docs also do not use EF core:
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mongo-app?view=aspnetcore-6.0&tabs=visual-studio

Related SO:
MongoDB and Entity Framework Core 2.0

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading