Beispiel #1
0
        public void Create()
        {
            var db = new SQLiteConnection(path);

            db.CreateTable <Mark>();
            db.CreateTable <Subjects>();

            Subjects        English = new Subjects("English", 1);
            Subjects        French  = new Subjects("French", 2);
            List <Subjects> SubList = new List <Subjects>();

            SubList.Add(English);
            SubList.Add(French);

            for (int i = 0; i < SubList.Count; i++)
            {
                Insert(SubList[i]);
            }
        }
Beispiel #2
0
        public void Insert(Subjects subject)
        {
            var db = new SQLite.SQLiteConnection(path);

            db.Insert(subject);
        }