Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can one class set a property to be seen by another c
Message
From
27/02/2013 12:58:25
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01566989
Message ID:
01567059
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
Why is the application class holding database properties? What you're wanting to do is called tight-coupling is not a good idea as it makes one class rely too much on the other.


>Any other way around this problem? E.g. in the application class I want to keep a reference to Database class, but from Database class I want to set properties of the application class?
>
>If, say, I add similar (or same) properties to the database class, can I somehow signal to the application class when database is setting its properties, so I can update application class properties?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform