Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Should Entities refer to fields from related tables?
Message
De
28/05/2010 15:24:16
 
 
À
28/05/2010 13:34:29
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01466424
Message ID:
01466433
Vues:
43
Ifv the parent child relationship is set, you can add Get Fields to your Policies Entity and then lookup to the parent Table in this way:
public string ClientName
>{
>    get
>    {
>        string clientName = ""
>        PolicyObj polObj = this.GetBusinessObject() as PolicyObj;
>        if (polObj != null)
>        {
>            if (polObj.ParentBizObj != null)
>            {
>                ClientObj cliObj = polObj.ParentBizObj as ClientObj;
>                if (cliObj != null && cliObj.Entity != null) clientName = cliObj.Entity.ClientName;
>            }
>        }
>        return clientName;
>    }
>}
You also can get data from a view.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform