Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Objects..question
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00930981
Message ID:
00931039
Views:
17
>Hi All,
>I have been using the MM framework since march, and I am new to the .Net concept as well. My old job didn't really separate business from gui, so this is kind of new to me as well. although I do understand the concept and why it is better.
>
>Questions with object details..
>
>In the MM business object(BO), I thought this was the place to put all code that gets data from the server, whether it be a single query or return and entire data set, or a simple query to return a couple of fields, from a larger dataset.
>
>When I added this one particular query to my BO, the BO tried to attached it to the fields on the form. this BO was to be used for a save query only, it determines if the user field entered already exists, so it was a count from the server where userid exists.
>
>When this query would run, the BO would try to bind it to the form, how can I avoid this?

When you specify binding information for user interface controls you specify both a BindingSource and a BindingSourceMember which can include the table name. If you don't specify a table name, the default value in the business object's TableName property is assumed.

If you want to read data into a secondary table within the business object's DataSet, you can do so by using one of the overloads that accepts the table name as a parameter. If you want to keep the main DataTable intact within the DataSet when you do this, rather than calling GetDataSet(), call FillDataSet() instead. This simply adds the new DataTable to the DataSet rather than completely recreating the DataSet.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform