Evidently I did confuse you guys.
Basically this is what I am thinking.A business object represent's a single table. It has to represent a single table in order to provide inserts update and deletes as well as all the goodies such as required fields, business logic rule handling etc. ?
However after trying to get a fairly complex report designed and trying many different things I realized that what I really wanted was a strong typed object that represented the schema of a SQL Select. I then dug in and created a class generator that creates this dummy class for me. I added to it Visual Studio as an add-in and it works fine.
Currently My Solution has 3 projects the Main project a BO project and a Reports project. In the Reports project I use the dummy class I create to create a design time data source of a Select Statement. In the Reports project I have a single BO that I use just to perform a select statement ,return a table and swap the reports datasource.
This design works fine however I would like to take it one step further and eliminate the BO from the equation and just be able to retrieve the data without having to use a business object I have no need for it in this instance. I could then figure out how to make my object "data aware" and be able to use it directly as a read only bindable object.
Is the line below correct for what I want to accomplish>? It seems to work ok but want to make sure that that is the correct entrypoint.
Dim loTable As DataTable = DataBasics.DataSources("").GetDataTable(loCmd, Nothing)
I hope this post makes more sense as to what I am doing and why I am doing it. I think that bindable read only strong typed query object is a good thing to have available but if you guys can think of anything wrong with what I am doing I'd like to know what you think.
Paul