C
CW
When I use a centralized data access component, I often find myself creating
an instance of the data access component and calling its method in a webform
(or from its code behind).
Is there any reason why I shouldn't mark those data access methods static
(or shared in vb.net parlance) and thus allowing me to access them without
having to instantiate the component first?
Thanks in advance
CW
an instance of the data access component and calling its method in a webform
(or from its code behind).
Is there any reason why I shouldn't mark those data access methods static
(or shared in vb.net parlance) and thus allowing me to access them without
having to instantiate the component first?
Thanks in advance
CW