Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Use Business Object Functions and Methods
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00960416
Message ID:
00960682
Views:
8
As you are probably aware, the ADO.NET dataset lets you load several tables into the same dataset. The MM.NET business object supports this so you could load both tables into the same dataset inside the business object. This allows you to setup a DataRelation between the datatables, a bonus for databinding.

Now, depending on what you are doing, you may want to separate the business object into Batch and Batchdetail and wire up the business object events so that the data gets loaded and saved correctly. You can then merge the datasets in your form with the DataSet.Merge command and set up a DataRelation between the tables inside the merged dataset.

So fundamentally you have to make a choice: Have the business object manage a single dataset and have each method load a different table or have separate business objects loading different datasets and then merge the datasets outside of the business objects.

Hope this helps.

>I'd like to place additional controls (labels or text boxes) on the form to display the information from the business objects GetProcessingCheckTotalsForBatch function.
>
>Is this properly designed as a function of my business object or should this be designed as a separate related business object?
>
>Using this as a function, can I (should I) use data binding to display the results of this function to form controls?
>
>THANKS for any guideance and strategies!!!!
Previous
Reply
Map
View

Click here to load this message in the networking platform