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:
00999877
Vues:
48
OK, this is more in line with what I was thinking that you were talking about earlier. Thanks.

(BTW, I don't have any relational garbage in my DataSets either. <g>)

~~Bonnie



>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
>>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform