EF 5, model first and dynamic connection string. RRS feed

  • Question

  • Hi,

    I'm working on my first EntityFramework project. I've created database model in designer and created db from it.

    Everything works fine. Succesfully finished first part of application.

    The problem is that this app have to be started by a dll which integrates the application with other software using it API.

    Problem is with the connection string stored in app.config file, which is not found from within dll file.

    How should I solve this problem? I'm trying to programatically modify connection string in application but could not achieve it.

    Giving conection string as a parameter to context constructor gives UnintentionalCodeFirstException. I've tried everything found online, so maybe a small advice how to approach this problem?

    Friday, September 28, 2012 5:52 PM

All replies