Browsed by
Month: December 2015

Use a custom connectionstring in Entity Framework

Use a custom connectionstring in Entity Framework

For a customer I needed to customize the way an Entity Framework 6 database-first project connects to a SQL Server database. Normally you specify the connectionstring including some metadata about the model in the app.config file. You can choose either to use Windows Authentication or SQL Authentication. If you want to use SQL Authentication you must provide the username and password. These are by default not encrypted and my customer did not like the idea that users who have access…

Read More Read More