Database Selection and Configuration
#
Business Layer#
Startup ClassRegister operation required for Autofac to Business->Startup.cs class is configured here. This is also where the Development, Staging, Production environment variables are managed. (For details of environment variables, see Running Web Api Project) Configuration for all environment variables is defined by DevArchitecture Code Generator.
This class is also used to determine which database the system will work with.
#
ConfigureDevelopmentServices MethodBy default, the ConfigureDevelopmentServices method is configured to work with InMemoryDb. No changes are required.
#
ConfigureStagingServices MethodBy default, the ConfigureProductionServices method is configured to work with PostgreSql. Download PostgreSql
If MsSql is desired to be used, it is used as follows. Download MsSql
#
ConfigureProductionServices MethodBy default, the ConfigureProductionServices method is configured to work with PostgreSql. Download PostgreSql
If MsSql is desired to be used, it is used as follows. Download MsSql
authors: Kerem VARIŞ, Veli GÖRGÜLÜ