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) ;