Arentas, Martinas, Pijus
- Open solution file (karma.sln) with visual studio
- Build the project
- PM Console:
dotnet user-secrets set "SendGridApiKey" "ValueGivenByDevelopers"
- Launch (after launch the app should be accessible on localhost)
- Change KarmaContext or any model
- run
dotnet ef migrations add NameOfMigration --context KarmaContext
in package manager console - run
dotnet ef database update --context=KarmaContext
in package manager console
Notes:
- DB browser for sqlite is great for checking DB itself.
- Path of DB file can be found by checking KarmaContext().DbPath (or by setting a breakpoint in KarmaContext constructor)
- Get greenlight for our idea during lecture
- Transfer milestones to
trellogithub board - Split milestones into smaller tasks and start working on them
- ...
Notes for lecture:
- 'When working with Web applications, use a context instance per request.' https://docs.microsoft.com/en-us/ef/ef6/fundamentals/working-with-dbcontext