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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -