change entity framework core code first migration name format

Refresh

April 2019

Views

6 time

1

ef core using system calendar format for generating migration names.

example of standard migration name for the Gregorian calendar on windows:

20190206144020_MIGRATION-NAME

But if the date format of Windows is something other than the Gregorian, like Persian calendar the ef core migration name generates something like :

13971114210223_MIGRATION-NAME

in a team project, we cannot use both formats because it's changing the order of migrations.

is there any way to fix that issue without changing windows calendar format or manually rename the migration?

version: EF core 2.2

0 answers