how to set one connection string in web.config and use in mutiple edmx files without touching the auto generated class of EDMX file RRS feed

  • Question

  • I have a project having 4 edmx files based on different module.When i have added 4 edmx files,4 connection strings generated.But i want to set a single connection string for four EDMX files.I dont want to touch the code of generated EDMX files.Is there any way to override the Entity name and connection string without touching the Model class.
    Thursday, April 17, 2014 12:34 PM


All replies

  • Moving to a more appropriate forum.

    Esther Fan | Visual Studio | If a post answers your question, please mark it as the answer. Thanks!

    Thursday, April 17, 2014 6:32 PM
  • You can't do it. There will be a connection string pointing to each EDMX used in the solution
    Thursday, April 17, 2014 9:22 PM