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



Clarity around ConnectionsExpand / Collapse
Author
Message
Posted 09/17/2006 8:27:35 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 03/20/2008 9:39:53 PM
Posts: 56, Visits: 126
I am a beginner, so I imagine that this is not an issue for others who have worked with StrataFrame for any length of time. I am very confused around connection objects as they are used in StrataFrame, so I would like to suggest some terminology that might make things clearer for the rookies (and avoid confusion later).

There are at least two connection objects associated with working with StrataFrame (I think?):

  1. The connection that is used to access the StrataFrame objects that are used in creating and maintaining the application. I think, but I'm not sure, that this is currently called a Database Connection, but may also be referred to as an Application Connection. It would be much more clear (to me) that calling this the StrataFrame Connection consistently would have made this much more clear. The connection should be referred to this way in all code, documentation, and in menu options.
  2. The connection that will be used in the application that is being built. This will be the connection object that will be used to access the data repository for the application. This might be called the Application Connection.

Like I said, I'm new, but clearly distinguishing between the StrataFrame Connection and an Application Connection will help to reduce confusion for the newbies - and you want lots of newbies, since they represent sales.

Regards,

Flavelle

Post #2858
Posted 09/18/2006 9:46:36 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
The first thing that you need to understand is that StrataFrame uses itself.  What I mean by this is that StrataFrame Connection, as you wanted to call it, is called the StrataFrame Data Store:

This is the name that we call our connection.  Any connection to a database or the connection wizard will be referred to, and is consistent within our posts and documentation, as a database connection.

The ApplicationKey is used as the unique identifiter that the database connection is stored under.  In your AppMain.vb or program.cs file, there is a shared property that gets set and is named the Application which is used when the SetConnections() method is called.  The framework looks in the externally stored connection table to see if there is an active database connection based on the ApplicationKey:

MicroFour.StrataFrame.Data.ConnectionManager.ApplicationKey = "MyApplicationKey"

To learn more read the documentation: Application -> WinForms -> Connection Strings

Post #2867
« 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 11:48am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 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.