Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiating and using two instances of the same BO
Message
 
 
À
16/07/2009 09:00:38
Tegron Tegron
Platinum Technologies
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01412544
Message ID:
01412691
Vues:
30
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform