Starts in:
1 DAY
21 HRS
17 MIN
52 SEC
Starts in:
1 D
21 H
17 M
52 S
Open Closed

Database Provider in Volo Docs #3675


User avatar
0
zalak created

How can I change the Database Provider to PostgreSql in Volo Docs ? Changing only the connection string to equivalent postgresql connection string isn't working. Please guide for the same if any other steps are needed to be performed.


3 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, please see the Switch to EF Core PostgreSQL Provider documentation.

  • User Avatar
    0
    zalak created

    Hi, please see the Switch to EF Core PostgreSQL Provider documentation. I went through the documentation you suggested but it requires Entity Framework Core .cs file which I won't be having in template downloaded to setup from https://docs.abp.io/en/abp/latest/Apps/VoloDocs

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I went through the documentation you suggested but it requires Entity Framework Core .cs file which I won't be having in template downloaded to setup from https://docs.abp.io/en/abp/latest/Apps/VoloDocs

    VoloDocs is a self-contained application, which only can be run without modification of code (you can think it as a sample application. So, if you want to use the Docs Module of ABP Framework and change the database provider as PostgreSQL, you need to create a template with PostgreSQL as database provider and then add the Docs Module to your application:

    1-) Creating a template with PostgreSQL as database provider :

    abp new Acme.BookStore --database-management-system PostgreSQL
    

    2-) Add Docs Module into your application:

    abp add-module Volo.Docs
    

    Then, you can use the Docs Module with PostgreSQL. But as i said, it's not possible with self-contained VoloDocs application.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06