A stock and quote system based on .Net 6.0
Refactored from https://github.com/CuteLeon/CleverStocker
- Select
IntelligentInvestor.Client
as Startup project; - Open Package Manager Console in Visual Studio;
- Select
IntelligentInvestor.Infrastructure
as Default project in Package Manager Console; - Input commands and execute;
Command | Description |
---|---|
Get-Help entityframework | Displays information about entity framework commands. |
Add-Migration | Creates a migration by adding a migration snapshot. |
Remove-Migration | Removes the last migration snapshot. |
Update-Database | Updates the database schema based on the last migration snapshot. |
Script-Migration | Generates a SQL script using all the migration snapshots. |
Scaffold-DbContext | Generates a DbContext and entity type classes for a specified database. This is called reverse engineering. |
Get-DbContext | Gets information about a DbContext type. |
Drop-Database | Drops the database. |