How to Change ConnectionString to an "ADO.NET Entity Data Model" at runtime
-
Hello, I really hope someone can help me, I do not know how to do. I've created an ado .net entity model (called model.edmx) in my site web and I have to change the connection string dinamically. After that I want to refresh data in a gridview that has, like datasource, an entitydatasource linked to model. How can i do?? Thanks in advance, Silvia Terzi
-
Hello, I really hope someone can help me, I do not know how to do. I've created an ado .net entity model (called model.edmx) in my site web and I have to change the connection string dinamically. After that I want to refresh data in a gridview that has, like datasource, an entitydatasource linked to model. How can i do?? Thanks in advance, Silvia Terzi
I believe this can be done in the constructor of the context when its used. Take a look ObjectContext Constructor[^]
-
I believe this can be done in the constructor of the context when its used. Take a look ObjectContext Constructor[^]
I can't understand how it works. Can you tell me where to find an example? Thanks, Silvia