private DAL.SimpleMessage saveMessage() { var repo = new Repository.SQLiteRepo(); var msg = repo.insertMessage(new DAL.SimpleMessage() { MessageContent = messageEditText.Text, RecieverNumber = numberEditText.Text, Date = System.DateTime.Parse(dateEditText.Text) }); return(msg); }
//public SQLiteRepo(SQLiteConnection _db) //{ // db = _db; //} public SQLiteRepo() { locker = new object(); SQLiteRepo.createDb(); //populateDbWithTestData(); }