StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Access application connectionsExpand / Collapse
Author
Message
Posted 12/30/2005 3:45:25 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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.
Post #398
Posted 01/05/2006 2:55:25 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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.
Post #403
Posted 01/06/2006 9:12:04 AM


StrataFrame Developer

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
Post #407
Posted 01/06/2006 9:49:32 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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.
Post #410
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 12:57pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 13 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.