Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet, DataTable, DataView
Message
From
29/07/2004 10:48:38
 
 
To
28/07/2004 21:57:12
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00928619
Message ID:
00929211
Views:
13
Bonnie,

In your form which edits oMyBizCustomer, do you bind controls to oMyBizCustomer.dsData? Or does the MyBizCustomer have properties that get populated when the DS is retrieved?

Or is it another option? :)

If it is #1, I have a question on the following line:
this.dsData = oDA.GetCustomer(CustomerKey);
Does oDa.GetCustomer() return a NEW DataSet, or just a repopulated one? A new dataset would break the bindings, correct?

Sorry for all the questions...


>Now in your MyBiz project, you'd have a Biz class:
>

>using MyCompany.DataAccess.MyDataAccess
>
>namespace MyCompany.Business.MyBiz
>{
> public class MyBizCustomer
> {
> private MyDataSet dsData;
>
> public MyDataSet GetCustomer(long CustomerKey)
> {
> MyDataAccessCustomer oDA = new MyDataAccessCustomer();
> this.dsData = oDA.GetCustomer(CustomerKey);
>
> // if you have other Biz things to do to this customer
> // do it here before returning the DataSet
>
> return this.dsData;
> }
> }
>}
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform