| | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | 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. |
| | | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | 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 Developer

Group: StrataFrame Developers Last Login: Today @ 11:24:42 AM Posts: 2,686, Visits: 1,889 |
| 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.
www.bungie.net |
| | | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | Great. Thanks for the info. You guys must have been working really hard on the documentation over the holidays. |
| |
|
|