Felish Anand

Felish Anand

  • NA
  • 134
  • 7.3k

Update .Edmx file When i change Db connection string in c#

Jul 21 2017 7:15 PM
I am not sure if there is a way to update edmx file automatically when database is changed.
current DbName = TestSolutionDB with 4 tables (Country,State,Address,User)
Change DbName = ProjectDB with 4 tables(User,Project,Status,Activity)
When i replace the Connection string like
data source=.;initial catalog ="TestSolution" To
data source=.;initial catalog ="ProjectDB "
I need to update .edmx file (Country,State,Address,User) TO (User,Project,Status,Activity) Design, and tt.file
These All Items can happened by pragmatically, Can give solution?
Thanks

Answers (2)