What do you think ? I suggest you read up on Static classes and when
they should be used. Would you really want the code that accesses the
database to be shared amongst all instances of calling code ?

On Feb 6, 4:02 pm, "[email protected]"
<[email protected]> wrote:
> Hi,
>
>  I have DAL which has methods to communicate with database.
> Which is the best way to define that class? I mean, Static/normal
> class?
>
> From my button click, should I create an instance of the class and
> access the methods inside or by directly calling the public methods of
> the class(static)?

Reply via email to