abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.89k stars 3.44k forks source link

abp-cli add option switch-dbms to change database provider #13002

Open barnybadzoo opened 2 years ago

barnybadzoo commented 2 years ago

ABP Framework 5.2.2.

Please write in English.

I would be a great advantage to be able to change the db provider after a standard-template and microservice-template is generated. There could be a parameter "-switch-dbms" where you could provide a new db provider like, which automatically does what is described at https://docs.abp.io/en/abp/latest/Entity-Framework-Core-Other-DBMS but also includes Mongodb:

SqlServer MySQL SQLite Oracle Oracle-Devart PostgreSQL Mongo

An optional parameter for the connectionstring should also be possible to provide. I would love to see that feature soon for abp commercial

stristan commented 2 years ago

Can I vote for this ticket. My use case - is to switch to PostgreSql database instead of default SqlServer after new microservice solution was generated. It is a little bit complicating to go over each microservice/app to add/remove needed packages and change the corresponding code