Hello there,
How do I specify connection string name taken from App.config using Entity Developer.
Generated data context file always includes complete connection string rather than connection string name in app.config.
Thank you in advance
Linq to Sql model & connection string
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Actually, the connection string specified in the app.config file is used in the code generated for the model. We will analyze the situation with the connection string hardcoded in the .lqml file and inform you about the results.
Also, you may change the connection used by the data context at run-time, e.g., by using the %ModelDataContext% constructor that takes an IDbConnection argument.
Also, you may change the connection used by the data context at run-time, e.g., by using the %ModelDataContext% constructor that takes an IDbConnection argument.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48