When I add an Entity Framework Model to a class library, it creates an app.config file where the connection string is stored.
What do I have to do, to bake the connection string into the project output (*.dll)?
Store it in a constant or compute it in a variable dbConnect, then pass into the constructor.
MyDatabaseEntities = new MyDatabaseEntities(dbConnect);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With