Open Closed

From mongo to postgres #6947


User avatar
0
rivz created
  • 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)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Please check https://support.abp.io/QA/Questions/365/Replace-mongo-db-to-postgres

    Thanks

  • User Avatar
    0
    rivz created

    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.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Please check the documentation https://docs.abp.io/en/abp/latest/Entity-Framework-Core-PostgreSQL we have updated as per version.

    Thanks,

  • User Avatar
    0
    rivz created

    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.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Sorry for your inconvenience I will check again and get back to you asap.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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.

  • User Avatar
    0
    rivz created

    Thanks

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11