Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reports using business Objects
Message
De
22/02/2006 19:05:26
 
Information générale
Forum:
ASP.NET
Catégorie:
Programmation orienté objet
Divers
Thread ID:
01098016
Message ID:
01098314
Vues:
11
Hi Fred,

Well, personally, I don't use BO's that way ... I pass around DataSets instead.

But, I think you have a couple of choices. You still want to go through BO's, not directly against the database. I don't know how you are using your BO's, but I don't see why you can't use multiple BO's. If necessary, you can create a new BO that handles multiple BO's. So, for example, a Sales BO would contain maybe the Customer, Invoice and Items BO's.

~~Bonnie



>Hi Bonnie,
>I'm sorry. I have a DAL that my BO's access, I wanted to know what was the right way to write reports, do I use my BO's or just directly query the DB. Where I am getting confused is if the report is just Inventory Listing I use the BO. What happens if the report includes data from Multiple BO's
>
>TIA
>
>
>
>>Fred,
>>
>>You don't say much about how you're already using your Biz Objects. Typically, a Biz Object doesn't access the database directly, but will most likely call methods in a Data Access class that will get the data from the database and return it to the Biz Object. Does this help?
>>
>>~~Bonnie
>>
>>
>>>Hi Guys,
>>>I have written a lot of business objects. When I write reports to access the data, do I use the Business Objects. For Example.
>>>
>>>If I have an Invoice Object that has a Customer Object and Many Item Objects. I want to run a Sales Report, Do I query the Db directly or must I write these queries in the Invoice Business Object. I am a bit confused.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform