How can i specify product version when working with migrations?

entity-framework-core entity-framework-core-migrations

Question

Here is a quick sample on how the [dbo].[__EFMigrationsHistory] table looks like:

EF migrations table

Is there a way to specify the ProductVersion when applying migrations?

1
2
3/13/2018 5:21:29 PM

Accepted Answer

Don't change the value in that column--it's used internally by EF.

You can add a new column if you like by overriding the IHistoryRepository service. See Custom EF Core Migrations History Table to get started.

5
2/20/2018 7:20:09 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow