Last post Mar 16, 2016 09:45 AM by Zhi Lv - MSFT
Mar 10, 2016 02:42 PM|t_shah|LINK
We use database first approach. We have about 3 different database and each with multiple DbContext. Managing connection string per environment for each DbContext is a headache. Is there a simpler way we can have Single connection string for each Database
which can be used in respective DbContext.
DbContext11, DbContext12, DbContext13
Mar 16, 2016 09:45 AM|Zhi Lv - MSFT|LINK
Is there a simpler way we can have Single connection string for each Database which can be used in respective DbContext.
I suppose there is no simpler way to do that.
For each database, I suggest you could create one context, If you want to update the .edmx file when the database changes, you can use
Update Model from Database option.
More details, please refer to these articles: