private static async Task Step1CreatingTables(ISqDatabase database) { var tables = new TableBase[] { new TableUser(), new TableCompany(), new TableCustomer(), new TableFavoriteFilter(), new TableFavoriteFilterItem() }; foreach (var table in tables.Reverse()) { await database.Statement(table.Script.DropIfExist()); } foreach (var table in tables) { await database.Statement(table.Script.Create()); } }