How to use ef6.exe

ef-migrations entity-framework-6

Question

I'm a newbie in entity framework. I have seen examples of using migrate.exe or enable-migration etc.

But migrate.exe does not exist any more. I explored the web and found that ef6.exe replaced the old migrate.exe

so I tried

ef6 -contexttypename musicstoredatacontext
ef6 -context musicstoredatacontext

nothing worked

I cannot find further support/documentation regarding the migration commands. and i'm new to migration.

Can somebody give me some hint how to work on it?

1
0
3/23/2020 3:07:52 AM

Popular Answer

I succeeded in adding migration by updating powershell and use add-migration initial command

Reference can be found here.

https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet

0
3/29/2020 10:01:52 AM


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