﻿<?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 » Enhancement Requests  » QueryInformation Object Accessibility</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:46:46 GMT</lastBuildDate><ttl>20</ttl><item><title>QueryInformation Object Accessibility</title><link>http://forum.strataframe.net/FindPost2032.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;The BusinessLayer class should provide the following abstract methods:&lt;/FONT&gt;&lt;/P&gt;&lt;UL style="MARGIN-TOP: 0in" type=disc&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateSelectQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateInsertQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateUpdateQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateDeleteQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateSelectStoredProcQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateInsertStoredProcQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateUpdateStoredProcQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;CreateDeleteStoredProcQueryInformation()&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;The implementing business object classes should return a new QueryInformation object initialized with the appropriate QueryType and stored procedure settings and all of the field and table properties already initialized based on the underlying data structure.&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face="Times New Roman" color=#000000 size=3&gt;This would greatly simplify generation of QueryInformation objects when writing code and facilitate their use querying.&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;</description><pubDate>Tue, 01 Aug 2006 14:26:27 GMT</pubDate><dc:creator>Joe Paquette</dc:creator></item><item><title>RE: QueryInformation Object Accessibility</title><link>http://forum.strataframe.net/FindPost2051.aspx</link><description>[quote]Development best practices suggests that SQL statements not be embedded in source code due to differences in SQL syntax between RDBMS vendors[/quote]&lt;P&gt;Key word here being "suggests." :)&amp;nbsp; Here within lies the problem.&amp;nbsp; This type of functionality alone could become a full time business.&amp;nbsp; In fact, there are third party companies that have products that do nothing but act as in "go between" all database query types.&amp;nbsp; For example, if you prefer to "speak" in SQL Server, you create your queries in that syntax and if you need to have it spit out the Oracle, MySql, etc, then you just set an output property and the statement is altered to the desired language.&lt;/P&gt;&lt;P&gt;Though we will continue to add functionality to our QueryInfo class, we have never claimed, nor plan, to become a "full translation" company.&amp;nbsp; If you have this need, and you are planning on supporting several different languages, then you should search the internet for some of the 3rd party companies that have a translation product available or create your own class to meet your needs.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.swissql.com/products/sqlone-apidotnet/sqlone-apidotnet.html"&gt;http://www.swissql.com/products/sqlone-apidotnet/sqlone-apidotnet.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Additionally, with the advent of DLinq, this problem will ultimately resolve itself by removing all embedded SQL.&amp;nbsp; This will be a part of StrataFrame 2.0 (for use with .NET 3.0).&lt;/P&gt;&lt;P&gt;[quote]I just realized that there is no corresponding GetDataTable(&lt;FONT color=#0000ff&gt;ByVal&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; QueryInfo &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; QueryInformation&lt;/FONT&gt;&lt;/FONT&gt;) method.&amp;nbsp; That would also be a useful addition. [/quote]&lt;/P&gt;&lt;P&gt;Thanks, I will look into that.</description><pubDate>Tue, 01 Aug 2006 14:26:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: QueryInformation Object Accessibility</title><link>http://forum.strataframe.net/FindPost2050.aspx</link><description>While what you stated is true, is assumes that developers will not use the FillDataTable(&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; QueryInfo &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; QueryInformation&lt;/FONT&gt;&lt;/FONT&gt;) method.&amp;nbsp; Development best practices suggests that SQL statements not be embedded in source code due to differences in SQL syntax between RDBMS vendors.&amp;nbsp;&amp;nbsp;Using the QueryInformation object to provide your WHERE clause information is a great alternative.&amp;nbsp; So, having methods that provide an initialized QueryInformation object would eliminate repetative coding to initialize many of the properties for which the data already exists in the business object.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I agree that the Insert, Update, and Delete versions of these proposed methods might be of little use to most folks, but the select versions would be helpful for those of who see value in using QueryInformation objects in the FillDataTable() &lt;STRIKE&gt;and GetDataTable()&lt;/STRIKE&gt; methods.&lt;/P&gt;&lt;P&gt;I just realized that there is no corresponding GetDataTable(&lt;FONT color=#0000ff&gt;ByVal&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; QueryInfo &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; QueryInformation&lt;/FONT&gt;&lt;/FONT&gt;) method.&amp;nbsp; That would also be a useful addition.</description><pubDate>Tue, 01 Aug 2006 13:59:03 GMT</pubDate><dc:creator>Joe Paquette</dc:creator></item><item><title>RE: QueryInformation Object Accessibility</title><link>http://forum.strataframe.net/FindPost2036.aspx</link><description>You can expose those methods by creating your own BusinessLayer class (that inherits from MicroFour.StrataFrame.Business.BusinessLayer) and returns the appropriate QueryInformation from the _DataLayer internal to the business object.&amp;nbsp; The query information objects used to save the business objects are created by the internal DataLayer object, not by the business object itself.</description><pubDate>Tue, 01 Aug 2006 09:04:55 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>