Skip to content

Latest commit

 

History

History
94 lines (82 loc) · 5.3 KB

File metadata and controls

94 lines (82 loc) · 5.3 KB

Intelligent Investor

Intelligent Investor

A stock and quote system based on .Net 6.0

Refactored from https://github.com/CuteLeon/CleverStocker

Status

Screen

Database Migration

Setup

  1. Select IntelligentInvestor.Client as Startup project;
  2. Open Package Manager Console in Visual Studio;
  3. Select IntelligentInvestor.Infrastructure as Default project in Package Manager Console;
  4. Input commands and execute;

Commands

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.