Skip to content
KaPodgaetsPublic

About

Pet Project at Kirill Sachkov course

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

158 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PetFam

Pet Project at Kirill Sachkov course

Additional Info

EFCore commands

Add migration

dotnet ef migrations add Initial -s .\PetFam.Api -p .\PetFam.Infrastructure
dotnet ef migrations add Initial -s .\PetFam.Api -p .\PetFam.Infrastructure --context WriteDbContext --output-dir Migrations/WriteDb
dotnet ef migrations add Initial -s .\PetFam.Api -p .\PetFam.Infrastructure --context ReadDbContext --output-dir Migrations/ReadDb

Apply migration

dotnet ef database update -s .\PetFam.Api -p .\PetFam.Infrastructure
dotnet ef database update -s .\PetFam.Api -p .\PetFam.Infrastructure --context WriteDbContext
dotnet ef database update -s .\PetFam.Api -p .\PetFam.Infrastructure --context ReadDbContext

Undo migrations

dotnet ef database update 0 -s .\PetFam.Api -p .\PetFam.Infrastructure

Remove migration

dotnet ef migrations remove -s .\PetFam.Api -p .\PetFam.Infrastructure

About

Pet Project at Kirill Sachkov course

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages