Ejemplo n.º 1
0
        private void databaseClick()
        {
            var db = new AsyncDatabase();
            //var result = db.CreateTable(ModelHelper.GetProperties(testmodel[0]), ModelHelper.GetModelName(testmodel[0]));
            var result = db.CreateTable(testmodel[0]);

            Console.WriteLine("ovo sam dobio od clicka: " + result);
            var resultdb = db.ExecuteSQL(result);
            Console.WriteLine("ovo sam dobio od reszultata: " + resultdb.ToString());
        }
Ejemplo n.º 2
0
 private void addDataClick()
 {
     try
     {
         var db = new AsyncDatabase();
         //var result = db.CreateTable(ModelHelper.GetProperties(testmodel[0]), ModelHelper.GetModelName(testmodel[0]));
         var result = db.Insert(testmodel);
         Console.WriteLine("ovo sam dobio od clicka: " + result.ToString());
         var resultdb = db.ExecuteSQL(result);
         Console.WriteLine("ovo sam dobio od reszultata: " + resultdb.ToString());
     }
     catch (Exception ex)
     {
         Console.WriteLine("[DatabasePage][addDataClick] Error {0}", ex.Message);
     }
 }
Ejemplo n.º 3
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);
 }