- Published on
- Authors
- koskila
How to implement multiple Connection Strings for one DbContext in EF Core?
Recently, while building an app service to host a .NET Core API, I had to implement the logic for using both Read-Only and Read-Write Database Contexts for Entity Framework Core. In this particular case, it was the same database - just different contexts, because depending on the location of the app service the app was deployed in, read and write operations might actually go to different database instances, That's really easy, right? Well... Yes and no.
























