Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very newbie question on business objects
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00999237
Message ID:
00999860
Views:
58
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
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform