Wednesday, November 24, 2010

How To Know A Scorpio Likes You?

Entity Framework Connection String

Case:
  • Windows Forms Application.
  • The Access Layer data is contained in a satellite DLL.
  • the same DLL contains the template edmx.
Where do I put the app.config with the Connection String?

Solution:
App.Config that contains the ConnectionString must belong to the project executable (if App.Config dll belongs to the satellite will be ignored at runtime even if you specify a rule deployment that the copy in the correct directory).

Score:
The contents of the App.config file, once installed the program will copy the configuration file of the executable that will be renamed "NomeEseguibile.exe.config" , note that the configuration file so you need an executable for each of our project.


This and other valuable informations on the ConnectionString for Entity Framework Entity Connection String Troubleshooting

0 comments:

Post a Comment