EDMX in a different project; move connection string to web.config RRS feed

  • Question

  • I have a Service Project which as my .Svc and the web.config

    There is an Entity Project in the same solution that houses my .Edmx and it has an app.config file for the connection string. I would like to have my connection string in web.config. The Service project does not have a reference to the Entity project right now. How will I make this happen?

    Please assist.

    Friday, June 1, 2012 6:10 PM


  • The Entity project > app.config does not matters in the runtime.

    In the runtime the execution application config file will be considered.

    So you can add the connection string inside web.config of .svc application.

    Resolving n Evolving in C# (http://jeanpaulva.com)

    • Marked as answer by Allen_MSDN Tuesday, June 5, 2012 2:23 AM
    Friday, June 1, 2012 10:15 PM