Access application connections


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I am trying to get the current connection of the application to be used in an error routine.  There doesn't seem to anything in the docs about the new features that were added in terms of connections.  Could you point me in the right direction.
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I am trying to get the current connection that the application is using to be used in an error routine.  There doesn't seem to be anything in the docs about the new features that were added in terms of connections.  Could you point me in the right direction.
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Sorry, Scott, the documentation wasn't updated when the changes were made to the connections. In the updated chm file that I posted yesterday, the section Application -> Connection String Management has been re-written to tell about all of the changes to the connection settings. Basically the application-wide connection string was replaced with the applicaiton-wide DataSources collection.



The best way to get the connection string would be to call



MicroFour.StrataFrame.Data.DataLayer.DataSources("").ConnectionString;




If your application has more than one data source, then you'll need to replace the "" with the key of the data source you want to retrieve the connection for.
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Great.  Thanks for the info.  You guys must have been working really hard on the documentation over the holidays.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search