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
>>