When you create an app front and backend, starting from an (azure) sql database, but don’t generate CRUD pages the connection string to the database is not set in the appsettings.json file in the server project.
Steps to reproduce:
- Create new app
- Add data source : SQL
- DON’T generate CRUD screens
- Generate backend
- Add 1 page to the app (nothing on it) because you cannot run without a page
- Run app
- See exception in Output
- Go see the appsettings.json file in the server folder, the name of the datasource is there, the value is not set
This doesn’t happen when you do generate the crud screens.