Using Strata Frame's connection to the datasource...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
How do i use the connection to the database that strataframe has made to execute miscellaneous sql? select statements, stored procedures, etc.
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
The default datasource it generally always an empty string ("").  The data source depends on what you have defined in your AppMain as a required data source.

MicroFour.StrataFrame.Data.ConnectionManager.AddRequiredDataSourceItem("", "SQL Connection", Data.DataSourceTypeOptions.SqlServer, "StrataFrame", "This connection is used by all design-time components and houses the business object mappings, meta-data, messaging, and localization data.")

The string in red above is the name of the key that you will need to specify.  It determines which connection you want to use when you reference the DataSources collection.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
Trent L. Taylor - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
             Imports MicroFour.StrataFrame.Data...
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
     Thanks Ben!
StarkMike - 19 Years Ago
             I'm glad that worked for you :)
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 18 Years Ago
Robin J Giltner - 18 Years Ago
StrataFrame Team - 18 Years Ago
                         What about with multiple users using the same application on the same...
Robin J Giltner - 18 Years Ago
                             You can still use the same key with multiple users talking to the same...
StrataFrame Team - 18 Years Ago
                                 Awesome, thanks Ben. That should save some heartache at a later date....
Robin J Giltner - 18 Years Ago
                                     No problem :)
StrataFrame Team - 18 Years Ago
Bradley Marston - 18 Years Ago
Bradley Marston - 18 Years Ago
             Hehe, will do.
StrataFrame Team - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search