Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PrimaryBizObject
Message
From
01/07/2008 11:14:25
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01327814
Message ID:
01327924
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform