Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet, DataTable, DataView
Message
De
29/07/2004 10:48:38
 
 
À
28/07/2004 21:57:12
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00928619
Message ID:
00929211
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform