mardi 24 novembre 2015

Retrieve data from SQLite database Android using Xamarin

I'm simply trying to retrieve data from SQLite. But nither my code is returning any value nor its giving any error. Please help me out. So far I've done

var test = new List<cdProdGroup>();
            var db = new SQLiteConnection(path);

            var test1 = db.Query<cdProdGroup>("SELECT * FROM cdProdGroup");
            foreach (var item in test1) {
                cdProdGroup cd = new cdProdGroup { DIQ_PG_CD_EBS = item.DIQ_PG_CD_EBS, DIQ_PG_DESC = item.DIQ_PG_DESC, DVSN_CD = item.DVSN_CD};
                test.Add(cd);
            }

I'm using Xamarin for coding

Aucun commentaire:

Enregistrer un commentaire