Skip to content

renetitulaer/DDDShippingExample

Repository files navigation

Create migration:
dotnet ef migrations add InitialCreate --project infrastructure --startup-project consoleApp --context ShippingDbContext --verbose

Remove migration:
dotnet ef migrations remove --project infrastructure --startup-project consoleApp --context ShippingDbContext --verbose

Update database
dotnet ef database update --project Infrastructure --startup-project ConsoleApp --context ShippingDbContext -- ".\sql2022;Database=DDDShippingExample;Trusted_Connection=True;TrustServerCertificate=True;MultipleActiveResultSets=true;Application Name=DDDShippingExample"

Drop database
dotnet ef database drop --project Infrastructure --startup-project ConsoleApp --context ShippingDbContext --force -- ".\sql2022;Database=DDDShippingExample;Trusted_Connection=True;TrustServerCertificate=True;MultipleActiveResultSets=true;Application Name=DDDShippingExample"

About

.Net implementation of "Using the Language in an Example: A Cargo" of the DDD book of Eric Evans

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages