I created windows form application having 3 layers as UI, BLL and DLL. I used DB first methodology. It was created a data model using below steps.
ADO.Net entity data model --> EF designer from database --> Then I gave the DB connection.
With above steps it was created data model as edmx file. DAL has app.config file and UI layer also has app.config. It was generated connection string automatically in DAL app.config. Then I copy and paste generated connection string part to UI app.config file. Actually solution is working fine. But I think, define one connection string in 2 places (DAL app.config and UI app.config) is not a best practice. Please guide me to do this (maintain one connection string in one place) in proper way.
How to maintain the connection string in one place?