Esempio n. 1
0
 internal async Task UpdateDatabases()
 {
     using (var main = new DatabaseContext())
         using (var localization = new LocalizationContext())
             await Task.WhenAll(main.Migrate(), localization.Migrate());
 }
Esempio n. 2
0
 private static async Task MigrateLocalized(bool intialize)
 {
     using (var context = new LocalizationContext())
         await context.Migrate(intialize).ConfigureAwait(false);
 }