﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Plug-In Architechture - Using Strataframe in Dynamic Enviroment</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 14:38:03 GMT</lastBuildDate><ttl>20</ttl><item><title>Plug-In Architechture - Using Strataframe in Dynamic Enviroment</title><link>http://forum.strataframe.net/FindPost13564.aspx</link><description>I am looking for an approach to Datasource access with using a Strataframe BO in another plug-in enviroment ( these enviroments dynamically load assemblies using CreateInstance ).&amp;nbsp;&amp;nbsp; The BO may be called from a Form or User Object and configuration of the Datasource connection string would be done prior to usage.&amp;nbsp;&amp;nbsp;Maybe Ben or Trent have an idea here.&amp;nbsp;&amp;nbsp; My question is where should I have the Datasource logic placed?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The first option that came to mind is to modify my base business object to instantiate the Datasource if it is not found.&amp;nbsp;&amp;nbsp;I can do this through a shared&amp;nbsp;class, module, etc. if necessary. &amp;nbsp;This would work like the way the AppMain functions and loads the Exeception and Datasource objects.&amp;nbsp;&amp;nbsp; Any comments, ideas, etc?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard</description><pubDate>Fri, 18 Jan 2008 12:46:15 GMT</pubDate><dc:creator>Richard Keller</dc:creator></item><item><title>RE: Plug-In Architechture - Using Strataframe in Dynamic Enviroment</title><link>http://forum.strataframe.net/FindPost13568.aspx</link><description>[quote]My question is where should I have the Datasource logic placed?[/quote]&lt;/P&gt;&lt;P&gt;It looks like you have the right idea.&amp;nbsp; The DataSources is a shared collection, so you could create a base BO that all of your business objects inherit from.&amp;nbsp; In the constructor of the BaseBO, you could then test to see if the connection string(s) have been created:&lt;/P&gt;&lt;P&gt;[codesnippet]If Not MicroFour.StrataFrame.Data.DataBasics.DataSources.ContainsKey("") Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Add your data source to the collection&lt;BR&gt;End If[/codesnippet]&lt;/P&gt;&lt;P&gt;But it looks as though you were already heading down the right road :)</description><pubDate>Fri, 18 Jan 2008 12:46:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>