I am using EF Code First 4.3 Migrations to update my database schema. Now I have the following situation: table A needs to be deleted, table B needs to be created, and table A data must be copied (along with some other data) to table B. I do not have access to DbContext in the DbMigration class, my question is How to implement this?
DbContext
DbMigration
In the Up migration method, you can use the Sql method to determine any SQL that you need, so if you use explicit migration, you can put the data transfer code between creating table B and deleting table A.
Up
Sql
Source: https://habr.com/ru/post/917947/More articles:how to change glyph height without changing font size? - htmlReading / Writing Cookies - c #How do you check if the mercury repo is clean? - dvcsTreeSet internally uses TreeMap, so is it necessary to implement the Hashcode method when using Treeset? - javaQML Image Saving - qtSecure removal using PHP 5.3.x - linuxjava treeet throwing illegalArgumentException: key out of range - javaIs it correct to switch the default perl IO value to utf-8 when using Plack and Middlewares? - perlTelerik Radgrid Export File Name - c #Find all kinds of method usage (including through the interface) using NDepend - c #All Articles