This question is locked. New answers and comments are not allowed.
Hi,
I just started the evaluation of OA and I like what I see so far very much. I have one big problem and I couldn't find any post or article that clearly helped me resolving this issue. I am writing a system that connects to many databases (75+). These databases have different schemas (20 have schema A, 10 schema B, etc) and for each I will generate a DAL library using OA. So, all good so far. The problem is that the connection information for those databases is... in a database (the main dbof our product) which lists things like this:
---Datasources---
Id (string)
Name (string)
ConnectionString (string)
DALLibrary (string)
What I need is, essentially, change the connection string of a OA library and make it point to the instance I am interested in.
Storing this kind of information in Config files is absoutely NOT an option (for obvious security reasons and other design reasons) but all I saw, so far, seems to point to the fact OA needs that info in config files. I've seen the overloads that allow you to pass an XElement but I found no examples of how to use that (and that seems the workaround to my problem).
Can anybody help?
Thanks a lot!
Alessandro Federici
I just started the evaluation of OA and I like what I see so far very much. I have one big problem and I couldn't find any post or article that clearly helped me resolving this issue. I am writing a system that connects to many databases (75+). These databases have different schemas (20 have schema A, 10 schema B, etc) and for each I will generate a DAL library using OA. So, all good so far. The problem is that the connection information for those databases is... in a database (the main dbof our product) which lists things like this:
---Datasources---
Id (string)
Name (string)
ConnectionString (string)
DALLibrary (string)
What I need is, essentially, change the connection string of a OA library and make it point to the instance I am interested in.
Storing this kind of information in Config files is absoutely NOT an option (for obvious security reasons and other design reasons) but all I saw, so far, seems to point to the fact OA needs that info in config files. I've seen the overloads that allow you to pass an XElement but I found no examples of how to use that (and that seems the workaround to my problem).
Can anybody help?
Thanks a lot!
Alessandro Federici