Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating and using two instances of the same BO
Message
 
 
To
16/07/2009 09:00:38
Tegron Tegron
Platinum Technologies
Ohio, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01412544
Message ID:
01412691
Views:
31
>No I actually did subclass the BO, which then allowed me to see that object in the BO wizard to select for binding to my grid. I quickly wanted to test that solution out while trying to understand Linda's solution. In my case the subclassing was simple to implement quickly, and it accomplished exactly what I needed.
>
>Tim's response did get me to thinking though. From a object oriented or design pattern standpoint, shouldn't I be able to have two different instances of an object that contained different data? In this case wouldn't you want to subclass the object?

IMHO, if we want to operate with different set of data, perhaps having different classes (or subclass of another) is better. However, I'm not familiar with MM.NET framework (I'm familiar with VFP MM framework) and made my suggestion just as the first idea came out.

I believe Tim and Linda will give you better approaches to consider and also may explain what is better from OOP standpoint.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform