Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DefineParticipatingObjects
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01189849
Message ID:
01190343
Vues:
18
Stuart,

>I have set up a businessProcess class and I want to be able to iterate through all the business object in the businessProcess. How can I do this?
> I have set my business objects in DefineParticipatingObjects, and tried GetParticipatingObjects but the count on that says 0.

If you want to use the GetParticipatingObjects() method you need to add them to the ParticipatingObjects collection in the DefineParticipatingObjects() method. For example:
protected override void DefineParticipatingObjects()
{
	this.Media = (Media)this.RegisterBizObj(new Media());
	this.ParticipatingObjectCollection.Add(this.Media);
}
Typically this isn't necessary since your business process object usually contains class-level variables that hold references to participating entities.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform