asp.net - Create Common Database Object -
i have written sql server class , contains methods insert, update, delete, execute stored procedure.
now have created object of class on default page load , using class methods implement database operations.
now if on second page , want database operation. need again create database object.
there way can create , use on other pages ?
you can singleton pattern. click here msdn article on it
Comments
Post a Comment