G
Guest
I have a class with all the database stuff in there like path,add, delete, and
update. I also have a form that calls the class like so:
DatabaseManager manager = new DatabaseManager();
manager.path();
In the database class I made a Dataset like so:
DataSet ds = new DataSet();
da.Fill(ds);
How do I call the dataset from the database class
Here is the database code
OleDbConnection Conn = new OleDbConnection();
string sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=F:\\\\Project Track It\\bin\\Project.mdb";
Conn.ConnectionString = sConnString;
Conn.Open();
string select = "select * from Project";
OleDbDataAdapter da = new OleDbDataAdapter (select, Conn);
DataSet ds = new DataSet();
da.Fill(ds);
Question is how do I call the dataset that I created in the database class
from the form. I s it by ref and if so can someone show me? Please
I have:
DatabaseManager manager = new DatabaseManager();
manager.path();
After that I have no clue
update. I also have a form that calls the class like so:
DatabaseManager manager = new DatabaseManager();
manager.path();
In the database class I made a Dataset like so:
DataSet ds = new DataSet();
da.Fill(ds);
How do I call the dataset from the database class
Here is the database code
OleDbConnection Conn = new OleDbConnection();
string sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=F:\\\\Project Track It\\bin\\Project.mdb";
Conn.ConnectionString = sConnString;
Conn.Open();
string select = "select * from Project";
OleDbDataAdapter da = new OleDbDataAdapter (select, Conn);
DataSet ds = new DataSet();
da.Fill(ds);
Question is how do I call the dataset that I created in the database class
from the form. I s it by ref and if so can someone show me? Please
I have:
DatabaseManager manager = new DatabaseManager();
manager.path();
After that I have no clue