Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Help needed SQLiteDataAdapter

$
0
0

Started off that I have this:

      sql = "SELECT * FROM Foods;";
      try
      {
        Variables.conn.Open() ;
        var daFoods = new SQLiteDataAdapter(sql, Variables.conn);

 

Now need to put the data adapter in the Variables class for global access.

I can work this bit out:

        Variables.daFoods.SelectCommand = sql;

 

But I can't work out how to get Variables.conn into daFoods so I can call :

        daFoods.Fill(Variables.dsFoods) ;


Viewing all articles
Browse latest Browse all 1764

Trending Articles