Create class for Access database connection

Hello to all, Here we make on class that help to connect application's database by simply call class. First we create Win form application .like Testapp. create one Access database like Testapp.accdb. after that we open application in visual studio and create one folder that name app_code. in this folder add one class file.and name them dbhelper.cs. public class DbHelper { public static OleDbConnection dbConnection; public DbHelper() { dbConnection = new OleDbConnection("Provider=Microsoft.Ace.OLEDB.12.0; Persist Security Info = False; Data Source=c:\\Testapp.accdb"); dbConnection.Open(); } } For this code you need to include some libraries like System.Data.OleDb ; Now time to use this c...