-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Pooran-Prasad
Message 6 in Discussion


Hi 
SriVidya,
    Yes, it is a common problem :) 
and quick fix is not the solution here. 
    I don't see a reason for 
keeping 2 components [business components and business entities 
components]. One can put namespaces to best use here. Use for 
example, business.core and business.entities and merge both until and 
unless, the requirement says so. In this case, you might have to 
change code in UI components a bit.
    Another way is to use the 
common features [say, returning dataview, scalar values etc] of both 
in another component, say business.common, and use 
that new component in the business components u have[Here you can 
have methods like getListOfOrders which in turn uses business.common for 
fetching data using, say getDataView(sqlstatement)]. In this way, you can 
avoid code change in UI layer. Code maintainance will also be easy. 
I would suggest 
you to use some Modelling tool like Enterprise Architect /Rational XDE, in case if you 
are not doing so, and reverse engineer your Components and then come 
out with a generic component that can be used both by your business components 
and business entities components. 
    There are very good web resources on 
refactoring the code. My favorites are 
http://www.objectmentor.com/resources/listArticles?key=topic&topic=Refactoring, 
http://www.refactoring.com/, http://industriallogic.com/xp/refactoring/. Hope that 
helps.
   Have a great day 
:)
    Pooran Prasad


R. Pooran Prasad
Itreya Technologies Pvt Ltd.,
Mail: 
[EMAIL PROTECTED]
Phone(Off) :  
5200179/80/81/82/83 Extn: 50
Mobile:  +91 98860 
29578

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to