Beispiel #1
0
        public async Task Fire()
        {
            var tables = _db.Set <BuilderDefine>().Where(e => e.Type == BuilderDefineTypes.Table && !e.TemplateId.HasValue)
                         .Select(e => e.Properties.ToObject <TableModel>())
                         .ToArray();

            using (var copntext = _store.CreatePbDbContext(_settings, tables))
            {
                await _migrator.RunAsync(copntext);
            }
        }
 private async Task RunUpdateAsync()
 {
     await _dataMigrator.RunAsync(await CreateDbContext());
 }