Specifying .config file with entity framework

Specifying .config file with entity framework

deusextechnic
Advocate Advocate
533 Views
2 Replies
Message 1 of 3

Specifying .config file with entity framework

deusextechnic
Advocate
Advocate
Hi, I am using entity framework code first approach to write/read to a database from autocad.net. I have a solution whereby I am adding the database connection string to the acad.exe.config file contained in autocad root in Program files. This is not really an elegant solution and is causing me issues with access. Is there a way I can point my DBContext derived class to a .config residing inside the plugin rather than acad.exe.config?
0 Likes
534 Views
2 Replies
Replies (2)
Message 2 of 3

nagamalliv
Enthusiast
Enthusiast
Hi,

Please add App.config to your application, if you build the application .config should be present in the release folder(in release mode).

Thanks
0 Likes
Message 3 of 3

Ed__Jobe
Mentor
Mentor

You will want to read this thread.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature