Пример #1
0
        // Initialize database with dummy data
        public void DummyInit()
        {
            bool tableCreatedNow = commentTable.CreateIfNotExists();

            if (tableCreatedNow)
            {
                TableQueries tableQueries = new TableQueries();
                tableQueries.AutoInsert("Laptop", "It has great battery life.", "Adam");
                tableQueries.AutoInsert("Laptop", "Poor build quality", "John");
                tableQueries.AutoInsert("Laptop", "At 2.5kg it's way to heavy to carry around", "Madeline");
                tableQueries.AutoInsert("Lightsaber", "It's heating up too much", "Mia");
                tableQueries.AutoInsert("Apple", "Too sour :(", "Sally");
                tableQueries.AutoInsert("Apple", "Tasty", "Ben");
                tableQueries.AutoInsert("Bicycle", "ideal for long trips", "Anna");
                tableQueries.AutoInsert("Bicycle", "After a month of daily use, the gear shif broke. Don't buy it!", "Abraham");
            }
        }