Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property visibility across namespaces
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00775502
Message ID:
00776054
Views:
17
>As far as I know you can't do that. You can only set visibility of members at the class level not at the namespace level.
>
>You may want to derive all of your classes in each namespace from a common base class and then mark the properties as Protected - that would accomplish what you need but would only work if all the classes can be of the same base type.

Rick,
I do derive all my classes in the namespace from a common base class.
The problem I’m still having is that if I set the property to protected, only the class that instantiated the object will see it. I’m trying to have it so that any class from within the same base class that instantiates it can see it.

The scenario here is that I perform my transaction code on the data layer but make the calls (begin, commit, rollback) from the business layer. When I have one business object call another business object, I don’t have a reference back to its data layer unless I give all business classes a property that references the data layer. I did this but want to keep the property scope to just other business classes without exposing it the to the UI which cal also instantiate the business objects.

Thanks,
Chris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform