Exemple #1
0
 private void InjectStaticData(DBService dbService)
 {
     try {
         dbService.GenerateStaticExportTables();
         dbService.InsertAll(StaticDatabase.GetStageTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetPlaySessionTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetLearningBlockTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetMiniGameTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetLetterTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetWordTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetPhraseTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetLocalizationTable().GetValuesTyped());
         dbService.InsertAll(StaticDatabase.GetRewardTable().GetValuesTyped());
     } catch (Exception e) {
         Debug.LogError(e);
     }
 }
Exemple #2
0
 public void InsertAll <T>(IEnumerable <T> objects) where T : IData, new()
 {
     dynamicDb.InsertAll <T>(objects);
 }