EntityFramework Querying data during migration

Is there a way to query the data during the first code migration? When the Up method is executed, I would like to create a context and perform CRUD operations using C #.

I would like to use C # instead of SQL stored procedures, etc. But when I try to create a context, the migration throws an exception saying that the context has some changes.

+3


source to share





All Articles