﻿<?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?)  » GetDataTable question</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:28:59 GMT</lastBuildDate><ttl>20</ttl><item><title>GetDataTable question</title><link>http://forum.strataframe.net/FindPost1903.aspx</link><description>I want to&amp;nbsp;do something like DataLayer.DataSources("").GetDataTable("SELECT * FROM Table") instead of going through a BO.&amp;nbsp; I just want a direct query on the database instead.&amp;nbsp; When I try to do this, the GetDataTable requires another parameter...a callback to be passed to it.&amp;nbsp; What is this parameter and what do I need to use here?</description><pubDate>Fri, 21 Jul 2006 09:21:16 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: GetDataTable question</title><link>http://forum.strataframe.net/FindPost1912.aspx</link><description>The callback that is passed is the callback that should be executed for Query Notification Services if the data changes on the server... when the business object is using the SqlDataSourceItem class, you can register query notifications with the server, and the callback is the method that should be called when a notification is received back from the server.&amp;nbsp; &lt;/P&gt;&lt;P&gt;It's only valid for SQL Server 2005 when Query Notification Services is turned on.</description><pubDate>Fri, 21 Jul 2006 09:21:16 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: GetDataTable question</title><link>http://forum.strataframe.net/FindPost1910.aspx</link><description>The callback method is for asynchronous access and is required based on the design of the data access layer.&amp;nbsp; You really do not need to go to the DAL to get a random query from a database.&amp;nbsp; In fact, this is not recommended since the DAL should never be touched by anything other than the business layer.&amp;nbsp; If you place code in the UI that goes directly to the DAL, you have broken encapsulation and if you attempt to create any other type of front end this will cause issues for you.&lt;/P&gt;&lt;P&gt;All business objects have a GetDataTable method that does what you are trying to do.&amp;nbsp; You do not have to pull data from the table that the BO represents.&amp;nbsp; Also, an ADO.NET data table is returned from the query and you can do whatever you need with that table.</description><pubDate>Fri, 21 Jul 2006 09:18:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>