Ejemplo n.º 1
0
 private void getData()
 {
     var db = new AsyncDatabase();
     var results = db.GetData(testmodel[0]);
     Console.WriteLine("ovo je statement: " + results.ToString());
     var resultExecute = db.ExecuteSQL<TestModel>(results);
     Console.WriteLine("ovo je jedan od rezultata: " + resultExecute[0].url + " " + resultExecute[0].title + " " + resultExecute[0].description + "\r Ovo je broj unosa: " + resultExecute.Count);
 }
Ejemplo n.º 2
0
 private void getDataSpecific()
 {
     var db = new AsyncDatabase();
     List<string> constraints = new List<string>();
     constraints.Add("url");
     var results = db.GetData(testmodel[0], 10, SQLHelper.SetConstraint(testmodel, "AND", constraints));
     Console.WriteLine("ovo je statement: " + results.ToString());
 }