J
JP
I have a C# DLL project I have created. The DLL plugs into other C#.NET
applications. This DLL has several classes and methods comprised for 4
namespaces that are used by other programmer to perform common tasks.
The settings for this DLL are contained within a SQL a database for easy
modification. The issue I am having is the number of times the DLL has to
make connections to the database to retrieve the settings information because
the call is in a different class or namespace from the previous call.
Ive have tried whenever possible to get the settings information at the
class level rather then the method level so that all methods in the class can
use the same values. However, because these classes are also used by other
methods WITHIN the same DLL, the number of times needed to retrieve
information from SQL continues to grow.
Is there any type of Global access in DLL project that would allow be to
load information one time and have its values accessible to any namespace or
class in the project?
applications. This DLL has several classes and methods comprised for 4
namespaces that are used by other programmer to perform common tasks.
The settings for this DLL are contained within a SQL a database for easy
modification. The issue I am having is the number of times the DLL has to
make connections to the database to retrieve the settings information because
the call is in a different class or namespace from the previous call.
Ive have tried whenever possible to get the settings information at the
class level rather then the method level so that all methods in the class can
use the same values. However, because these classes are also used by other
methods WITHIN the same DLL, the number of times needed to retrieve
information from SQL continues to grow.
Is there any type of Global access in DLL project that would allow be to
load information one time and have its values accessible to any namespace or
class in the project?