Entity Framework: multiple DB having the same schema
I have just created an ASP.NET MVC 4 & WebAPI project. After that I have added .edmx data source to project. I have multiple databases with the same schema. Dynamically I want to replace connection string using default constructor provided in EF. But in Model1.Designer.cs , every time I get error like "Member with same signature already declared". I'm unable to solve this problem. Yes, it works! All you need to change is the connection string . And I have just tested it in order to satisfy my own curiosity. Here are the steps that I took: 1. Take an existing database and create a model for it.