Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PrimaryBizObject
Message
De
01/07/2008 11:14:25
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01327814
Message ID:
01327924
Vues:
12
Maurizio,

GetAllEntities is a method of mmBaseBusinessObject also but I think would have to be cast to work which defeats your point. I am not sure why it would be easier to cut and paste something that you could type just as fast. There are a few times I use GetAllEntities, but usually you would create a method in your specific business object that limits the scope of the data you retrieve and thus you would call those methods instead. Is there more to your question than you have stated that would help narrow down your needs?
Tim

>On a few part of the code I have this call that retrieves all entityes of an BO
>
> this.[BO name].GetAllEntities();
>
>I would like to use some "generic" way so that I can copy/paste this piece of code to new forms, without modifying the BO name.
>
>So is there a way to do something like this:
>
> this.PrimaryBizObj.GetAllEntities();
>
>This above line does not work because this.PrimaryBizObj is of type mmBaseBusinessObject and GetAllEntities() is a method of the specific BO entity type.
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform