Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DefineParticipatingObjects
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01189849
Message ID:
01190343
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform