1

I have this project made by someone else that's I'm refering in mine; it's a data access layer using Entity Framework.

So of course, when I compile my project, I have my executable, with its .config file.

Here's the kicker: How can I tell the data access layer DLL to which server and with which credentials to connect to it ?

If I open the DAL DLL in Notepad, I do see the connection strings hardcoded in it.

I have modified the DAL project to be able to handle many connection strings, but once compiled, it's baked in it.

Am I misunderstanding the internal workings of EF ?

Thanks a ton.

1 Answer 1

0

You will most likely want to store the credentials into some type of configuration file. There are several ways this can be done. Take a look at the following MSDN article: Security Considerations (Entity Framework)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.