Exemple #1
0
        public void OnActivityCreated(Activity activity, Bundle savedInstanceState)
        {
            if (!CopyCompleted)
            {
                DatabaseHelper DbHelper = new DatabaseHelper();

                DatabaseInitHelper.CopyDatabase(DbHelper.GetFullDbPath());
                DatabaseInitHelper.CopyDatabaseMigrationFiles(DbHelper.GetMigrationScriptBaseFolderPath());

                Database.DatabaseMigrator.Migrate(DbHelper.GetConnection(), DbHelper.GetMigrationScriptBaseFolderPath());

#if DEBUG
                DatabaseInitHelper.CopyDatabaseToSDCard();
#endif

                CopyCompleted = true;
            }
        }
Exemple #2
0
 public DataBaseController(FastFoodContext ffContext)
 {
     dbInitHelper = new DatabaseInitHelper(ffContext);
 }