Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Should Entities refer to fields from related tables?
Message
From
29/05/2010 13:32:23
Antonio Llano
Inmollano S.L.
Getxo, Spain
 
 
To
29/05/2010 10:04:19
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01466424
Message ID:
01466512
Views:
40
Hi Frank,

I think that the correct way to go has been suggested you by Tim Bryan. It is the normal way if you have Real State on your Window. I rarely use what I previously told you, but it is a solution in some cases. I commonly use this kind of navigation between parent and child objects and entities in the inverse way, an entity field (usuali numeric, decimal, real...) changes and then look for its object that calculates something (Sum, Avg, Max...) in the EntityList and fill the result in the Parent Object Entity´s corresponding field. I use to program everything I can in the business layer, and I found it very powerfull. If I need a readonly EntityList (for instance a report) with data of more than one Parent Object, then I create a view in the database and create the Entity Object, and only the Entity Object, using the BLG and then retrieve the EntityList from one of the involved object coding the needed GetViewEntityListByKey(params) method.

Sorry if I could not help you.

Regards,
Antonio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform