Exemplo n.º 1
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL (@"CREATE TABLE IF NOT EXISTS Question (QuestionID INTEGER PRIMARY KEY AUTOINCREMENT," +
                "IMAGEID NOT NULL, QUESTIONSTRING VARCHAR(150) NOT NULL,CORRECTANSWER VARCHAR(150) NOT NULL,"+
                "WRONGANSWER1 VARCHAR(100) NOT NULL,WRONGANSWER2 VARCHAR(100) NOT NULL,WRONGANSWER3 VARCHAR(100) NOT NULL,"+
                "DATEENTERED varchar(30) NOT NULL)");
 }
Exemplo n.º 2
0
        public override void OnUpgrade(Android.Database.Sqlite.SQLiteDatabase db, int oldVersion, int newVersion)
        {
            db.ExecSQL ("DROP TABLE IF EXISTS QuizScore");

            OnCreate (db);
        }
Exemplo n.º 3
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL (@"CREATE TABLE IF NOT EXISTS QuizScore (ScoreID INTEGER PRIMARY KEY AUTOINCREMENT," +
                "ScoreDate varchar(30) NOT NULL, PlayerName varchar(10) NOT NULL, ScoreNumber NOT NULL)");
 }
Exemplo n.º 4
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL(@"CREATE TABLE IF NOT EXISTS GolfScore (GolfID INTEGER PRIMARY KEY AUTOINCREMENT," +
         "ScoreDate varchar(30) NOT NULL, ScoreNumber NOT NULL, Rating double NOT NULL, Slope int not null)");
 }
Exemplo n.º 5
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL (@"CREATE TABLE IF NOT EXISTS Station (StationID INTEGER PRIMARY KEY AUTOINCREMENT, " +
                 "ID VARCHAR(50) NOT NULL, LocationX VARCHAR(15) NOT NULL, LocationY VARCHAR(15) NOT NULL," +
                 "Name VARCHAR(50) NOT NULL, Standardname VARCHAR(50) NOT NULL)");
 }
Exemplo n.º 6
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL (@"CREATE TABLE IF NOT EXISTS CONNECTION (CONNECTIONID INTEGER PRIMARY KEY AUTOINCREMENT, " +
                 "ID VARCHAR(20) NOT NULL, SOURCE VARCHAR(8000) NOT NULL)");
 }
Exemplo n.º 7
0
 public override void OnCreate(Android.Database.Sqlite.SQLiteDatabase db)
 {
     db.ExecSQL (@"CREATE TABLE IF NOT EXISTS Tweet (" +
                 "TweetID INTEGER PRIMARY KEY AUTOINCREMENT, SOURCE VARCHAR(8000) NOT NULL)");
 }