Hello Are you okay I learned a lot from this video, I wanted to take advantage and ask how can it be done to use a progressbar when using the restore and backup buttons? congratulations for the content, top!!👏👏👏👏
-----------Here is the DBGeneral class----------- using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectName.My_Classes { class DB_General:DB_Connection { public SqlCommand CMD; public DB_General() { CMD = new SqlCommand(); CMD.Connection = conn; } //Insert, Update And Delete... public void general_query(string query) { Open_Connection(); CMD.CommandText = query; CMD.ExecuteNonQuery(); Close_Connection(); } public DataTable MyTable(string query) { Open_Connection(); CMD.CommandText = query; SqlDataAdapter myAdapter = new SqlDataAdapter(CMD); DataTable mytbl = new DataTable(); myAdapter.Fill(mytbl); return mytbl; } } }
where is DB_genral class? please show that class also , don't post incomplete tutorail
Hello Are you okay
I learned a lot from this video, I wanted to take advantage and ask how can it be done to use a progressbar when using the restore and backup buttons?
congratulations for the content, top!!👏👏👏👏
where is DB_Connection class?
create folder within ur project named "My_Classes" then create the class inside this folder named"DB_General".
🎉😅
-----------Here is the DBGeneral class-----------
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectName.My_Classes
{
class DB_General:DB_Connection
{
public SqlCommand CMD;
public DB_General()
{
CMD = new SqlCommand();
CMD.Connection = conn;
}
//Insert, Update And Delete...
public void general_query(string query)
{
Open_Connection();
CMD.CommandText = query;
CMD.ExecuteNonQuery();
Close_Connection();
}
public DataTable MyTable(string query)
{
Open_Connection();
CMD.CommandText = query;
SqlDataAdapter myAdapter = new SqlDataAdapter(CMD);
DataTable mytbl = new DataTable();
myAdapter.Fill(mytbl);
return mytbl;
}
}
}
Bro! where to enter the connection string
our ye db_connection class kaha hai?
well done but where is dbgenral class please
Check the new comment.
@@safitech9848 where is the class i can't find it please put that class also
What is myClasses.DbGeneral
where is db_general?
where's db_general
Where is Db_genral bro
thank you