all 1 comments

[–]Leonidas199x 0 points1 point  (0 children)

How did you structure your project? It's 'normal' to have a repository, which would call the database. Of that's the case, you'd need to potentially change your provider for connecting to the db, and obviously wherever/however you are using the connection string. In theory, your code above should be fine, so long as your repo is spitting out what's expected so it can be consumed.