Rowin ツ
Explore posts from serversDatabase suffix builder
Question,
is doing something like this acceptable?
Though I think is is right I'm still getting some dependency injection problems but im not sure if i should spend time on fixing those or if there is a different way
For example this:
33 replies
Docker container not port forwarding
Hello, yesterday I was in here as well regarding some problems with my port forwarding.
Im trying to get my docker container to run on localhost:8080 and also make use of some certificates because I want to use another local project to test out the endpoints on my api which I am trying to deploy.
I have the following code
Dockerfile:
Docker-compose:
Appsettings:
Launchsettings:
82 replies
Create a DbContext at build time, but change the connectionstring at runtime.
Hello,
We are currently refactoring a few of our projects, and one of the problems we are having is wanting to switch databases in an SQL server. For example, we have our SQL server localhost with Database Test1, Test2, Test3, etc.... and we would like to change to which database the api is calling based on some other factors which is given by info from Redis. Now we can't find anything quite solid regarding achieving this without having to rebuild the whole DbContext. To keep in mind, all those databases are copies of eachother. But theyre are just meant for different people. Hence we think it would work by not having to re-create the DbContext.
8 replies
EF Not finding columns
I'm trying to create an API for my database using the IdentityManager,
when simply wanting to grab all my users from the database using my controller I get this error:
"message": "Invalid column name 'ConcurrencyStamp'.\r\nInvalid column name 'LockoutEnd'.\r\nInvalid column name 'NormalizedEmail'.\r\nInvalid column name 'NormalizedUserName'."
Ive checked the database and its columns and those columns are present. Im not really sure where else I should look.
Ive applied the correct table name to the modelBuilder.29 replies