Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very newbie question on business objects
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00999237
Message ID:
00999860
Vues:
56
Dmitry asked to see a business object that uses a dataset so thats what I showed.

My domain model business objects look like this (only slightly simplified).
<Persistent>
public class Customer {
   public string Name;
   public decimal CreditLimit;
   public void RaiseCreditLimit(decimal amount)
   {
      this.CreditLimit += amount;
   }
}
Simple. Elegant. No relational garbage obscuring my business logic.



>OK, Dave ... here's what I don't get ... I thought we disagreed on this concept, but sometimes it sure sounds like we're talking about the same thing. How is the example you've posted below any different than what I've been saying about passing DataSets between the "layers"? In fact, I'll go you one better because instead of the getCustomer() method returning a plain old DataSet as you've done, I'd return a Typed DataSet (call it CustomerDataSet).
>
>~~Bonnie
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform