Get the connection string from the first data source #1260
-
I need to run some part of my C# script only if the connection script of the data source (asuming that I've only one) contains a specific string. How can do that? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
rvgfox
Mar 11, 2024
Replies: 1 comment
-
I've solve it with:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rvgfox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've solve it with:
string sConnectionString=(Model.DataSources[0] as ProviderDataSource).ConnectionString;