List Info

Thread: Re: Fields as data. Also Linq.




Re: Fields as data. Also Linq.
user name
2008-02-23 08:23:21
Not sure I'm understanding. Account, Order and Address should all be classes (possibly entities), and either encapsulate, or have a factory or manager type object that encapsulates; their construction logic, including DAL stuff. It seems like you're thinking about this from a data perspective, not an OO perspective? Why would you join orders to accounts? Assuming 1 account to n orders, each order is going to have an account ID of some sort, right? So Account maybe has a member _address and a method GetOrders() which populates List<Order>. When you go to manipulate, display, whatever your Account-Order-Account._address permutation, the OO relationships drive the logic ... ?


On 2/22/08, Russell Wallace < russell.wallacegmail.com">russell.wallacegmail.com> wrote:

On Fri, Feb 22, 2008 at 10:05 AM, Andrew Badera < andrewbadera.us">andrewbadera.us> wrote:
> What am I missing here?


Specifics. Maybe I'm the one missing; I've never been able to grok
abstraction by itself, I always need a realistic example.

I gave one: suppose we go your way, class Account, class Order. Now we
join orders to accounts to get orders with addresses filled in from
accounts. Oops, no class. How do we solve that problem? Not a
rhetorical question, I'm actually curious about the proposed solution.





--
--Andy Badera
http://andrew.badera.us/
andrewbadera.us">andrewbadera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting&quot; group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )