- ABP Framework version: v8.0.1
- UI Type: Blazor Server
- Database System: MongoDB
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
What is the best way to change my db provider from mongo to postgres? Its okay if i lose any data, i am just figuring if there is an optimal way to do this without rewriting the whole project. Last thread i found about it was 4 years ago and i really hope the times have changed and there is some info on how to do that. ABP documentation shows how to change between EFC providers, but nothing how to go from mongo to postgres.
7 Answer(s)
-
0
Hello,
Please check https://support.abp.io/QA/Questions/365/Replace-mongo-db-to-postgres
Thanks
-
0
Yes this is the 4 years old thread i found, thats why i asked if there is something new about it. Abp has evolved 5 versions since then, from 3 to 8.
-
0
Hello,
Please check the documentation https://docs.abp.io/en/abp/latest/Entity-Framework-Core-PostgreSQL we have updated as per version.
Thanks,
-
0
In my first post i wrote "ABP documentation shows how to change between EFC providers, but nothing how to go from mongo to postgres."
this is the link you are giving me. It seems like youre not undrestanding/reading my question.
-
0
Hello,
Sorry for your inconvenience I will check again and get back to you asap.
Thanks
-
0
hi
There is currently no such documentation, but you can create a new template project and copy the code from the EF Core project into your project. And add your model classes. If you get any errors, you can always give feedback.
Similar to template project we have ef core and MongoDB layers.
https://github.com/abpframework/abp/tree/dev/templates/app/aspnet-core/src
Thanks.
-
0
Thanks