Extracting contents of ConnectionStrings in web.config in Silverlight Business application.
- by webKite
I am trying to read dataSource ad Catalog from connectionString in web.config in Silverlight business project. Unfortunately when I used "SqlConnectionStringBuilder", I could not read connectionstring the has "connectionString="metadata=res:///MainDatabase.Main.csdl|res:///MainDatabase.Main.ssdl|......."" where as it work for
"connectionString="Data Source=My-PC\SQL_2008;Initial Catalog =...."".
I could get them using "Split" however, I don't like that solution. Is there any way to get my requirements?
Thanks