Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Should Entities refer to fields from related tables?
Message
De
29/05/2010 13:32:23
 
 
À
29/05/2010 10:04:19
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01466424
Message ID:
01466512
Vues:
39
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform