Read database during an entity framework migration (select query)
问题 I know I can use the Sql method to update data during a migration, and it works great for simple things that can be expressed in pure SQL. I also know I could use a Seed method but that would feel like a hack (the code I want to write has to be executed once, when the migration is executed). In my current case, I need to strip HTML tags from a column, and write that to a new column added in the migration. I already have a C# method that does exactly that. What I want to do, is iterate over