示例#1
0
        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);
        }
示例#2
0
        //public SQLiteRepo(SQLiteConnection _db)
        //{
        //    db = _db;
        //}

        public SQLiteRepo()
        {
            locker = new object();
            SQLiteRepo.createDb();
            //populateDbWithTestData();
        }