Skip to content

mastrauckas/Vacations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RouteTesting

Run Migrations

From Package Manager Console

  1. Bring up Package Manager Console by clicking Tools=>NuGet Package Manager=>Package Manager Console.
  2. Run Add-Migration InitialMigration -verbose -StartupProject Maa.Vacations.WebApi -Project Maa.Vacations.Entities.
    • -Project means which project contains the DbContext class
    • -StartupProject means which project contains the Db connection info and other information.
  3. Update the database by running Update-Database.

From PowerShell

  1. Install these tools.

    • dotnet tool install --global dotnet-ef
    • dotnet tool update --global dotnet-ef
  2. Run dotnet ef migrations add InitialMigration -verbose --startup-project Maa.Vacations.WebApi --project Maa.Vacations.Entities

    • --project means which project contains the DbContext class
    • --startup-project means which project contains the Db connection info and other information.
  3. Update the database by running dotnet ef database update.

For more documentation

RFCs To Know About

Good Reference

About

A .NET project to test different pieces of .NET.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages