Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Day 3 - Breakout 01 - Contacts API uses local database #500

Open
Freshchris01 opened this issue Sep 28, 2022 · 0 comments
Open

Day 3 - Breakout 01 - Contacts API uses local database #500

Freshchris01 opened this issue Sep 28, 2022 · 0 comments

Comments

@Freshchris01
Copy link
Contributor

In the Breakout 01 of day 3, the contacts API does not seem to use the configured connection string to the SQL database. Instead it uses an in memory database. This can be tested by:

  • Adding a contact with the frontend
  • Retrieving the contact with the contact api GET /contacts returns the contact
  • Restarting the contacts API webapp
  • Retrieving the contact with the contact api GET /contacts returns an empty array

It could be related to not setting the "hostingEnvironment" to production for this check:

if (HostingEnvironment.IsDevelopment())
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant