How to execute similar action from Package Manager Console like programmatic Database.EnsureCreated()?

38 Views Asked by At

I can execute EF Core's Database.EnsureCreated() programmatically, when my web application starts, and everything EF Core related code in place, and is working properly.

Is there any way to execute something similar from PM> console? (just like add-migration or update-database), but I do not want any migration, just the same effect what executing Database.EnsureCreated() from code.

0

There are 0 best solutions below