encapsulation

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have a cs with all the database stuff in there like path,add, delete, and
uodate. I also have a from the call 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);
.



Relevant Pages

  • Re: Windows Ada database support.
    ... >> (or doing GUI programming on windows using GNAVI), ... >> GWindows.Database or ADO bindings directly from GNATCOM are the likely ... > can write portable database code. ... > database code should compile to all platforms. ...
    (comp.lang.ada)
  • Re: Java and Databases
    ... Where should the database code go? ... > It will probably be a webapp using JSP, ... Will it help with my database code issue? ... Not really, Struts is an MVC web framework, it has nothing to do with your ...
    (comp.lang.java.programmer)
  • Re: Windows Ada database support.
    ... If your application is windows only ... > (or doing GUI programming on windows using GNAVI), ... The OO level support is database neutral in most places, ... database code should compile to all platforms. ...
    (comp.lang.ada)
  • Re: How I dramatically sped up DB file updating
    ... > Yet, if it takes 28 seconds to update 500 records on a Access database, ... > I do not remember to have found noticeable speed differences when batch ... This approach isn't great...it doesn't give consistent times. ... Prev by Date: ...
    (comp.lang.pascal.delphi.misc)
  • Re: please help - sub or function not defined
    ... If I were a betting man, I would suggest that the database code calls out to ... an external module in the user's local data folder. ...
    (microsoft.public.mac.office)